gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/02: HTTPS: use sockets directly, without


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: HTTPS: use sockets directly, without wrappers This should improve performance in HTTPS mode
Date: Sun, 04 Jun 2017 16:22:24 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 9e1db6c7b01e9e4cd790b3e8344e21ea2234c65d
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Jun 4 16:40:39 2017 +0300

    HTTPS: use sockets directly, without wrappers
    This should improve performance in HTTPS mode
---
 src/microhttpd/daemon.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 455539a9..81ef5f76 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2567,12 +2567,11 @@ internal_add_connection (struct MHD_Daemon *daemon,
 #endif
          return MHD_NO;
         }
-      gnutls_transport_set_ptr (connection->tls_session,
-                               (gnutls_transport_ptr_t) connection);
-      gnutls_transport_set_pull_function (connection->tls_session,
-                                         (gnutls_pull_func) 
&recv_param_adapter);
-      gnutls_transport_set_push_function (connection->tls_session,
-                                         (gnutls_push_func) 
&send_param_adapter);
+#if (GNUTLS_VERSION_NUMBER+0 >= 0x030109) && !defined(_WIN64)
+      gnutls_transport_set_int (connection->tls_session, (int)(client_socket));
+#else  /* GnuTLS before 3.1.9 or Win x64 */
+      gnutls_transport_set_ptr (connection->tls_session, 
(gnutls_transport_ptr_t)(intptr_t)(client_socket));
+#endif /* GnuTLS before 3.1.9 */
 
       if (daemon->https_mem_trust)
          gnutls_certificate_server_set_request (connection->tls_session,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]