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:
John Safranek
2019-06-27 15:37:26 -07:00
parent b02e1e8d59
commit 21afcf17a8
3 changed files with 42 additions and 13 deletions

View File

@@ -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