forked from wolfSSL/wolfssl
fix cipherSuite0 byte in sniffer, so ECC is recognised correctly.
This commit is contained in:
@@ -1198,7 +1198,9 @@ static int ProcessServerHello(const byte* input, int* sslBytes,
|
|||||||
*sslBytes -= b;
|
*sslBytes -= b;
|
||||||
|
|
||||||
/* cipher suite */
|
/* cipher suite */
|
||||||
(void)*input++; /* eat first byte, always 0 */
|
b = *input++; /* first byte, ECC or not */
|
||||||
|
session->sslServer->options.cipherSuite0 = b;
|
||||||
|
session->sslClient->options.cipherSuite0 = b;
|
||||||
b = *input++;
|
b = *input++;
|
||||||
session->sslServer->options.cipherSuite = b;
|
session->sslServer->options.cipherSuite = b;
|
||||||
session->sslClient->options.cipherSuite = b;
|
session->sslClient->options.cipherSuite = b;
|
||||||
|
Reference in New Issue
Block a user