OpenSSL_init.h

Go to the documentation of this file.
00001 /*
00002  * Distributed under the OpenDDS License.
00003  * See: http://www.opendds.org/license.html
00004  */
00005 
00006 /**
00007  * This is seperate from OpenSSL_legacy.h to use in the SSL Unit Test Main.cpp
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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1