Change the default number of NewSessionTickets we send to 2
[openssl.git] / util / perl / TLSProxy / Proxy.pm
index 8df0153d2415b0a4c6bdc318c4ccb4de621883d7..8c13520ec68dd7ec366d658f49b3d8ac2e27ed8a 100644 (file)
@@ -220,6 +220,12 @@ sub start
 
     my $execcmd = $self->execute
         ." s_server -max_protocol TLSv1.3 -no_comp -rev -engine ossltest"
+        #In TLSv1.3 we issue two session tickets. The default session id
+        #callback gets confused because the ossltest engine causes the same
+        #session id to be created twice due to the changed random number
+        #generation. Using "-ext_cache" replaces the default callback with a
+        #different one that doesn't get confused.
+        ." -ext_cache"
         ." -accept $self->{server_addr}:0"
         ." -cert ".$self->cert." -cert2 ".$self->cert
         ." -naccept ".$self->serverconnects;