Add a test for unencrypted alert
[openssl.git] / util / perl / TLSProxy / Record.pm
index 9de51b371a7a0cf4d614f04f532d8f6334990a2d..8db50d0bffea4e93922faa29d7badaee78099413 100644 (file)
@@ -97,7 +97,9 @@ sub get_records
             $data       # decrypt_data
         );
 
             $data       # decrypt_data
         );
 
-        if ($content_type != RT_CCS) {
+        if ($content_type != RT_CCS
+                && (!TLSProxy::Proxy->is_tls13()
+                    || $content_type != RT_ALERT)) {
             if (($server && $server_encrypting)
                      || (!$server && $client_encrypting)) {
                 if (!TLSProxy::Proxy->is_tls13() && $etm) {
             if (($server && $server_encrypting)
                      || (!$server && $client_encrypting)) {
                 if (!TLSProxy::Proxy->is_tls13() && $etm) {