From 39e7ecc0b3c5cbe529093f126189eadbf83d3a80 Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Mon, 8 Apr 2019 14:33:12 +0200 Subject: crypto: Obey compile flags for no DSA, BF, DES, DH --- lib/crypto/c_src/openssl_config.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'lib/crypto/c_src/openssl_config.h') diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h index f926f8af13..339eb5b8f4 100644 --- a/lib/crypto/c_src/openssl_config.h +++ b/lib/crypto/c_src/openssl_config.h @@ -25,9 +25,8 @@ #include #include -#ifndef OPENSSL_NO_DES #include -#endif /* #ifndef OPENSSL_NO_DES */ + /* #include This is not supported on the openssl OTP requires */ #include #include @@ -166,6 +165,22 @@ # define HAVE_BLAKE2 #endif +#ifndef OPENSSL_NO_BF +# define HAVE_BF +#endif + +#ifndef OPENSSL_NO_DES +# define HAVE_DES +#endif + +#ifndef OPENSSL_NO_DH +# define HAVE_DH +#endif + +#ifndef OPENSSL_NO_DSA +# define HAVE_DSA +#endif + #ifndef OPENSSL_NO_MD4 # define HAVE_MD4 #endif -- cgit v1.2.3