forked from wolfSSL/wolfssl
Fix for sniffer with TLS v1.2 static ECDH ciphers. The sniffer will now correctly try using the key for ECC if the RSA key decode fails. ZD 11476.
This commit is contained in:
@ -2111,6 +2111,8 @@ static int SetupKeys(const byte* input, int* sslBytes, SnifferSession* session,
|
||||
/* If we can do ECC, this isn't fatal. Not loading an ECC
|
||||
* key will be fatal, though. */
|
||||
SetError(RSA_DECODE_STR, error, session, 0);
|
||||
if (keys->ecKey == NULL)
|
||||
keys->ecKey = session->sslServer->buffers.key; /* try ECC */
|
||||
#endif
|
||||
}
|
||||
#ifdef HAVE_ECC
|
||||
|
Reference in New Issue
Block a user