mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
openssl cleanup
This commit is contained in:
parent
9d8e27754c
commit
2eed5c615c
1 changed files with 16 additions and 0 deletions
|
@ -75,6 +75,22 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "libtorrent/aux_/session_impl.hpp"
|
#include "libtorrent/aux_/session_impl.hpp"
|
||||||
#include "libtorrent/kademlia/dht_tracker.hpp"
|
#include "libtorrent/kademlia/dht_tracker.hpp"
|
||||||
|
|
||||||
|
#ifndef TORRENT_DISABLE_ENCRYPTION
|
||||||
|
|
||||||
|
#include <openssl/crypto.h>
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
// openssl requires this to clean up internal
|
||||||
|
// structures it allocates
|
||||||
|
struct openssl_cleanup
|
||||||
|
{
|
||||||
|
~openssl_cleanup() { CRYPTO_cleanup_all_ex_data(); }
|
||||||
|
} openssl_global_destructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
using boost::shared_ptr;
|
using boost::shared_ptr;
|
||||||
using boost::weak_ptr;
|
using boost::weak_ptr;
|
||||||
using boost::bind;
|
using boost::bind;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue