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;
|
||||
|
||||
/* 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++;
|
||||
session->sslServer->options.cipherSuite = b;
|
||||
session->sslClient->options.cipherSuite = b;
|
||||
|
Reference in New Issue
Block a user