diff options
author | Adriaan de Jong <dejong@fox-it.com> | 2011-06-23 11:40:52 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-10-19 22:09:53 +0200 |
commit | b01cb9ef6b7ed5769f925fc96b6eb534c794203f (patch) | |
tree | 8ac6b1fbe65fe99b343e5e2c81a9a6c2bf7ff0a3 /crypto.h | |
parent | 330715f0abec92dad434f3ca38557e5cff03f2a3 (diff) | |
download | openvpn-b01cb9ef6b7ed5769f925fc96b6eb534c794203f.tar.gz openvpn-b01cb9ef6b7ed5769f925fc96b6eb534c794203f.tar.xz openvpn-b01cb9ef6b7ed5769f925fc96b6eb534c794203f.zip |
Refactored crypto initialisation functions
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'crypto.h')
-rw-r--r-- | crypto.h | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -34,15 +34,6 @@ #define ALLOW_NON_CBC_CIPHERS -/* - * Does our OpenSSL library support crypto hardware acceleration? - */ -#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ENGINE_LOAD_BUILTIN_ENGINES) && defined(HAVE_ENGINE_REGISTER_ALL_COMPLETE) && defined(HAVE_ENGINE_CLEANUP) -#define CRYPTO_ENGINE 1 -#else -#define CRYPTO_ENGINE 0 -#endif - #include <openssl/objects.h> #include <openssl/rand.h> #include <openssl/evp.h> @@ -55,10 +46,6 @@ #include <openssl/sha.h> #include <openssl/err.h> -#if CRYPTO_ENGINE -#include <openssl/engine.h> -#endif - #if SSLEAY_VERSION_NUMBER >= 0x00907000L #include <openssl/des_old.h> #endif @@ -434,12 +421,6 @@ void test_crypto (const struct crypto_options *co, struct frame* f); const char *md5sum(uint8_t *buf, int len, int n_print_chars, struct gc_arena *gc); -void init_crypto_lib_engine (const char *engine_name); - -void init_crypto_lib (void); - -void uninit_crypto_lib (void); - /* key direction functions */ void key_direction_state_init (struct key_direction_state *kds, int key_direction); @@ -458,9 +439,6 @@ void key2_print (const struct key2* k, const char* prefix0, const char* prefix1); -/* memory debugging */ -void openssl_dmalloc_init (void); - #ifdef USE_SSL #define GHK_INLINE (1<<0) |