Line data Source code
1 : /* 2 : * Distributed under the OpenDDS License. 3 : * See: http://www.opendds.org/license.html 4 : */ 5 : 6 : /** 7 : * This is separate from OpenSSL_legacy.h to use in the SSL Unit Test Main.cpp 8 : */ 9 : 10 : #ifndef OPENDDS_DCPS_SECURITY_OPENSSL_INIT_H 11 : #define OPENDDS_DCPS_SECURITY_OPENSSL_INIT_H 12 : 13 : #include <openssl/evp.h> 14 : 15 : #if OPENSSL_VERSION_NUMBER < 0x10100000L 16 : 17 : inline void openssl_init() 18 : { 19 : OpenSSL_add_all_algorithms(); 20 : } 21 : 22 : inline void openssl_cleanup() 23 : { 24 : EVP_cleanup(); 25 : } 26 : 27 : #else 28 : 29 40 : inline void openssl_init() 30 : { 31 40 : } 32 : 33 37 : inline void openssl_cleanup() 34 : { 35 37 : } 36 : 37 : #endif // OPENSSL_VERSION_NUMBER < 0x10100000L 38 : 39 : #endif