• Lars Ingebrigtsen's avatar
    Implement asynch TLS negotiation · ac6e085c
    Lars Ingebrigtsen authored
    * src/gnutls.c (gnutls_try_handshake): Factor out into its own
    function.
    (emacs_gnutls_handshake): Use it.
    (emacs_gnutls_read): Just return instead of retrying the handshake.
    
    * src/process.c (finish_after_tls_connection): Factor out
    into its own function.
    (connect_network_socket): Use it.
    (wait_reading_process_output): Retry TLS handshakes.
    (wait_reading_process_output): Defer sentinel until TLS completes.
    ac6e085c
gnutls.c 56.7 KB