commit: r1866 - neon/trunk/src

joe at manyfish.co.uk joe at manyfish.co.uk
Thu Nov 24 19:15:10 EST 2011


Author: joe
Date: Fri Nov 25 00:15:10 2011
New Revision: 1866

Modified:
   neon/trunk/src/ne_openssl.c

Log:
* src/ne_openssl.c (ne_ssl_context_create): Disable TLS ticket support
  since it inhibits testing of session caching.


Modified: neon/trunk/src/ne_openssl.c
==============================================================================
--- neon/trunk/src/ne_openssl.c	(original)
+++ neon/trunk/src/ne_openssl.c	Fri Nov 25 00:15:10 2011
@@ -568,6 +568,11 @@
     } else if (mode == NE_SSL_CTX_SERVER) {
         ctx->ctx = SSL_CTX_new(SSLv23_server_method());
         SSL_CTX_set_session_cache_mode(ctx->ctx, SSL_SESS_CACHE_CLIENT);
+#ifdef SSL_OP_NO_TICKET
+        /* disable ticket support since it inhibits testing of session
+         * caching. */
+        SSL_CTX_set_options(ctx->ctx, SSL_OP_NO_TICKET);
+#endif
     } else {
 #ifndef OPENSSL_NO_SSL2
         ctx->ctx = SSL_CTX_new(SSLv2_server_method());



More information about the neon-commits mailing list