693a96c
From fb08c34eee2c883a01ab0dda2a2e34a290516a2a Mon Sep 17 00:00:00 2001
693a96c
From: Jeremy Evans <code@jeremyevans.net>
693a96c
Date: Fri, 17 Jul 2015 11:31:45 -0600
693a96c
Subject: [PATCH 5/8] Use OP_NO_TICKET when testing SSL session cache callbacks
693a96c
693a96c
This fixes the test when using LibreSSL and possibly some
693a96c
configurations of OpenSSL.
693a96c
693a96c
diff --git test/openssl/test_ssl_session.rb test/openssl/test_ssl_session.rb
693a96c
index d4713d9..58fa20b 100644
693a96c
--- test/openssl/test_ssl_session.rb
693a96c
+++ test/openssl/test_ssl_session.rb
693a96c
@@ -316,6 +316,7 @@ __EOS__
693a96c
 
693a96c
     ctx_proc = Proc.new { |ctx, ssl|
693a96c
       ctx.session_cache_mode = OpenSSL::SSL::SSLContext::SESSION_CACHE_SERVER
693a96c
+      ctx.options = OpenSSL::SSL::OP_NO_TICKET
693a96c
       last_server_session = nil
693a96c
 
693a96c
       # get_cb is called whenever a client proposed to resume a session but
693a96c
-- 
693a96c
2.4.5
693a96c