Synchronous Quick Assist Support for Sniffer

1. Add missing deinitializers for the QAT as the sniffer exits.
This commit is contained in:
John Safranek
2019-10-03 09:15:50 -07:00
parent 9a5eb1bb67
commit 177bab84e5

View File

@@ -623,6 +623,14 @@ void ssl_FreeSniffer(void)
wc_FreeMutex(&SessionMutex);
wc_FreeMutex(&ServerListMutex);
#ifdef WOLF_CRYPTO_CB
#ifdef HAVE_INTEL_QA_SYNC
wc_CryptoCb_UnRegisterDevice(CryptoDeviceId);
IntelQaClose(&CryptoDevice);
IntelQaDeInit(CryptoDeviceId);
#endif
#endif
if (TraceFile) {
TraceOn = 0;
fclose(TraceFile);