]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/openssl-compat.c
Import of OpenSSH 4.4p1
[gssapi-openssh.git] / openssh / openbsd-compat / openssl-compat.c
index 957be810c84134964caed26fb88dfd0e85e09b5b..564490921ac67e70c426688988f147478072b34d 100644 (file)
 
 #include "includes.h"
 
-#define SSH_DONT_REDEF_EVP
+#ifdef USE_OPENSSL_ENGINE
+# include <openssl/engine.h>
+#endif
+
+#define SSH_DONT_OVERLOAD_OPENSSL_FUNCS
 #include "openssl-compat.h"
 
 #ifdef SSH_OLD_EVP
@@ -44,3 +48,15 @@ ssh_EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *evp)
        return 1;
 }
 #endif
+
+#ifdef USE_OPENSSL_ENGINE
+void
+ssh_SSLeay_add_all_algorithms(void)
+{
+       SSLeay_add_all_algorithms();
+
+       /* Enable use of crypto hardware */
+       ENGINE_load_builtin_engines();
+       ENGINE_register_all_complete();
+}
+#endif
This page took 0.190815 seconds and 4 git commands to generate.