forked from wolfSSL/wolfssl
Sniffer Watch Mode
1. Split the function ssl_SetWatchKey() into ssl_SetWatchKey_file() which loads the key from a named file and ssl_SetWatchKey_buffer() which loads the key from a provided buffer. file() uses buffer().
This commit is contained in:
@@ -208,7 +208,7 @@ static int myWatchCb(void* vSniffer,
|
||||
if (certName == NULL)
|
||||
return -1;
|
||||
|
||||
return ssl_SetWatchKey(vSniffer, certName, FILETYPE_PEM, NULL, error);
|
||||
return ssl_SetWatchKey_file(vSniffer, certName, FILETYPE_PEM, NULL, error);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user