You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2005/05/14 06:44:37 UTC
cvs commit: xml-security/c/src/enc/OpenSSL OpenSSLCryptoProvider.cpp
blautenb 2005/05/13 21:44:37
Modified: c/src/enc/OpenSSL OpenSSLCryptoProvider.cpp
Log:
Shutdown OpenSSL properly - as suggested by Jesse Pelton <js...@PKC.com> in e-mail to security-dev@xml on 9 March 2005
Revision Changes Path
1.18 +6 -2 xml-security/c/src/enc/OpenSSL/OpenSSLCryptoProvider.cpp
Index: OpenSSLCryptoProvider.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/enc/OpenSSL/OpenSSLCryptoProvider.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- OpenSSLCryptoProvider.cpp 20 Feb 2005 10:35:14 -0000 1.17
+++ OpenSSLCryptoProvider.cpp 14 May 2005 04:44:37 -0000 1.18
@@ -61,7 +61,11 @@
EVP_cleanup();
ERR_free_strings();
-
+ /* As suggested by Jesse Pelton */
+ CRYPTO_cleanup_all_ex_data();
+ RAND_cleanup();
+ X509_TRUST_cleanup();
+ ERR_remove_state(0);
}