mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
Sniffer without OldTls
1. Put a guard around the call to DeriveKeys() when building with --enable-sniffer --disable-oldtls. Disabling OldTls removes the DeriveKeys() function. Similar logic used in internal.c.
This commit is contained in:
@@ -2856,8 +2856,10 @@ static int ProcessServerHello(int msgSz, const byte* input, int* sslBytes,
|
||||
ret += DeriveTlsKeys(session->sslClient);
|
||||
}
|
||||
else {
|
||||
#ifndef NO_OLD_TLS
|
||||
ret = DeriveKeys(session->sslServer);
|
||||
ret += DeriveKeys(session->sslClient);
|
||||
#endif
|
||||
}
|
||||
ret += SetKeysSide(session->sslServer, ENCRYPT_AND_DECRYPT_SIDE);
|
||||
ret += SetKeysSide(session->sslClient, ENCRYPT_AND_DECRYPT_SIDE);
|
||||
|
Reference in New Issue
Block a user