Add a test to check the EC point formats extension appears when we expect
[openssl.git] / util / TLSProxy / ServerKeyExchange.pm
index 6e5b4cdcb42fe5acfec75b4c579595ba391c449a..7640b3f55bd53e6300a5a5a414e83926bef018d5 100644 (file)
@@ -42,9 +42,9 @@ sub parse
 {
     my $self = shift;
 
-    #Minimal SKE parsing. Only supports DHE at the moment (if its not DHE
-    #the parsing data will be trash...which is ok as long as we don't try to
-    #use it)
+    #Minimal SKE parsing. Only supports one known DHE ciphersuite at the moment
+    return if (TLSProxy::Proxy->ciphersuite()
+               != TLSProxy::Message::CIPHER_ADH_AES_128_SHA);
 
     my $p_len = unpack('n', $self->data);
     my $ptr = 2;