mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
clean up openssl data structures on exit
This commit is contained in:
parent
604072f762
commit
360a93badb
2 changed files with 5 additions and 1 deletions
|
@ -211,7 +211,7 @@ function x509_ocsp_verify%(certs: x509_opaque_vector, ocsp_reply: string, root_c
|
||||||
|
|
||||||
// from here, always goto cleanup. Initialize all other required variables...
|
// from here, always goto cleanup. Initialize all other required variables...
|
||||||
time_t vtime = (time_t) verify_time;
|
time_t vtime = (time_t) verify_time;
|
||||||
OCSP_BASICRESP *basic = 0;
|
OCSP_BASICRESP *basic = 0;
|
||||||
OCSP_SINGLERESP *single = 0;
|
OCSP_SINGLERESP *single = 0;
|
||||||
X509_STORE_CTX *csc = 0;
|
X509_STORE_CTX *csc = 0;
|
||||||
OCSP_CERTID *certid = 0;
|
OCSP_CERTID *certid = 0;
|
||||||
|
|
|
@ -1174,6 +1174,10 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
sqlite3_shutdown();
|
sqlite3_shutdown();
|
||||||
|
|
||||||
|
ERR_free_strings();
|
||||||
|
EVP_cleanup();
|
||||||
|
CRYPTO_cleanup_all_ex_data();
|
||||||
|
|
||||||
// Close files after net_delete(), because net_delete()
|
// Close files after net_delete(), because net_delete()
|
||||||
// might write to connection content files.
|
// might write to connection content files.
|
||||||
BroFile::CloseCachedFiles();
|
BroFile::CloseCachedFiles();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue