clean up openssl data structures on exit

This commit is contained in:
Bernhard Amann 2014-05-19 14:43:46 -07:00
parent 604072f762
commit 360a93badb
2 changed files with 5 additions and 1 deletions

View file

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

View file

@ -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();