Merge pull request #3644 from dgarske/zd11476

Fix for sniffer with TLS v1.2 static ECDH ciphers
This commit is contained in:
toddouska 2021-01-18 13:32:57 -08:00 committed by GitHub
commit fff3c77568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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