OpenSSL_init.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef OPENSSL_INIT_H
00011 #define OPENSSL_INIT_H
00012
00013 #include <openssl/evp.h>
00014
00015 #if OPENSSL_VERSION_NUMBER < 0x10100000L
00016
00017 inline void openssl_init()
00018 {
00019 OpenSSL_add_all_algorithms();
00020 }
00021
00022 inline void openssl_cleanup()
00023 {
00024 EVP_cleanup();
00025 }
00026
00027 #else
00028
00029 inline void openssl_init()
00030 {
00031 }
00032
00033 inline void openssl_cleanup()
00034 {
00035 }
00036
00037 #endif // OPENSSL_VERSION_NUMBER < 0x10100000L
00038
00039 #endif