search for: ssh_dont_overload_openssl_func

Displaying 3 results from an estimated 3 matches for "ssh_dont_overload_openssl_func".

2018 Oct 22
2
[PATCH] openssl-compat: Add version compatibility for SSLeay and friends
...7 insertions(+) diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h index 9e0264c0..b4f0908f 100644 --- a/openbsd-compat/openssl-compat.h +++ b/openbsd-compat/openssl-compat.h @@ -87,6 +87,13 @@ void ssh_aes_ctr_iv(EVP_CIPHER_CTX *, int, u_char *, size_t); */ #ifndef SSH_DONT_OVERLOAD_OPENSSL_FUNCS +/* OpenSSL >= 1.1.0 without deprecated APIs needs this.*/ +#ifndef SSLEAY_VERSION +# define SSLEAY_VERSION OPENSSL_VERSION +# define SSLeay_version OpenSSL_version +# define SSLeay OpenSSL_version_num +#endif + # ifdef USE_OPENSSL_ENGINE # ifdef OpenSSL_add_all_algorithms # und...
2005 Nov 20
0
[PATCH] Optionally enable OpenSSL hardware support
...at.c --- openbsd-compat/openssl-compat.c 17 Jun 2005 11:15:21 -0000 1.2 +++ openbsd-compat/openssl-compat.c 1 Oct 2005 08:58:50 -0000 @@ -18,7 +18,11 @@ #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_CT return 1; } #endif + +void +ssh_SSLeay_add_all_algorithms(void) +{ + SSLeay_add_all_algorithms(); + +#ifdef USE_OPENSSL_ENGINE + /* Enable use of crypto hardware */ + ENGINE...
2018 Nov 19
2
[PATCH] openssl-compat: Test for OpenSSL_add_all_algorithms before using.
...*/ ENGINE_load_builtin_engines(); diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h index b87ce59e..3ebdcca1 100644 --- a/openbsd-compat/openssl-compat.h +++ b/openbsd-compat/openssl-compat.h @@ -113,6 +113,10 @@ void ssh_OpenSSL_add_all_algorithms(void); #endif /* SSH_DONT_OVERLOAD_OPENSSL_FUNCS */ +#if !defined(USE_OPENSSL_ENGINE) && !defined(HAVE_OPENSSL_ADD_ALL_ALGORITHMS) +# define OpenSSL_add_all_algorithms +#endif + /* LibreSSL/OpenSSL 1.1x API compat */ #ifndef HAVE_DSA_GET0_PQG void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, -- 2.19.1