mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix to not treat cert/key not found as error in myWatchCb
and WOLFSSL_SNIFFER_WATCH
. The key can be pased as argument to ./snifftest
and if built with sniffer watch let's keep trying to parse instead of throwing an error.
This commit is contained in:
@ -267,8 +267,11 @@ static int myWatchCb(void* vSniffer,
|
||||
certName = DEFAULT_SERVER_KEY_ECC;
|
||||
}
|
||||
|
||||
if (certName == NULL)
|
||||
return -1;
|
||||
if (certName == NULL) {
|
||||
/* don't return error if key is not loaded */
|
||||
printf("Warning: No matching key found for cert hash\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ssl_SetWatchKey_file(vSniffer, certName, FILETYPE_PEM, NULL, error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user