mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Merge pull request #3644 from dgarske/zd11476
Fix for sniffer with TLS v1.2 static ECDH ciphers
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
|
/* If we can do ECC, this isn't fatal. Not loading an ECC
|
||||||
* key will be fatal, though. */
|
* key will be fatal, though. */
|
||||||
SetError(RSA_DECODE_STR, error, session, 0);
|
SetError(RSA_DECODE_STR, error, session, 0);
|
||||||
|
if (keys->ecKey == NULL)
|
||||||
|
keys->ecKey = session->sslServer->buffers.key; /* try ECC */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef HAVE_ECC
|
#ifdef HAVE_ECC
|
||||||
|
Reference in New Issue
Block a user