• Lars Ingebrigtsen's avatar
    Rework the mechanisms for async GnuTLS connections · cecf6c9a
    Lars Ingebrigtsen authored
    * lisp/net/gnutls.el (open-gnutls-stream): Compute the
    gnutls-boot parameters and pass them to the process object.
    (gnutls-negotiate): New parameter :return-keywords that won't
    connect to anything, just compute the keywords.
    
    * lisp/url/url-http.el (url-http): Revert async TLS sentinel
    hack, which is no longer necessary.
    
    * src/gnutls.c (Fgnutls_asynchronous_parameters): Rename from
    gnutls-mark-process.
    
    * src/process.c (connect_network_socket): If we're connecting to
    an asynchronous TLS socket, complete the GnuTLS boot sequence here.
    
    * src/process.h: New parameter gnutls_async_parameters.
    cecf6c9a
process.c 226 KB