Fix the tests following the state machine changes for TLSv1.3
[openssl.git] / util / TLSProxy / ServerHello.pm
index 79a8be9a895e79c79df83c442652577351520be4..9d6ad385bbaf7929680dd77f3f1fc3555c71301c 100644 (file)
@@ -94,6 +94,12 @@ sub parse
 
     $self->process_data();
 
+    # TODO(TLS1.3): Replace this reference to draft version before release
+    if ($server_version == TLSProxy::Record::VERS_TLS_1_3_DRAFT) {
+        TLSProxy::Record->server_encrypting(1);
+        TLSProxy::Record->client_encrypting(1);
+    }
+
     print "    Server Version:".$server_version."\n";
     print "    Session ID Len:".$session_id_len."\n";
     print "    Ciphersuite:".$ciphersuite."\n";