summaryrefslogtreecommitdiffstats
path: root/tcpd/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'tcpd/configure.ac')
-rw-r--r--tcpd/configure.ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/tcpd/configure.ac b/tcpd/configure.ac
index abbad25..13aec55 100644
--- a/tcpd/configure.ac
+++ b/tcpd/configure.ac
@@ -506,6 +506,31 @@ RAND_pseudo_bytes(dummy, 1);
[ Whether OpenSSL 0.9.7 is installed ])
], [
AC_MSG_RESULT(no)
+
+
+
+ AC_MSG_CHECKING(for OpenSSL 1.1.0)
+ AC_TRY_LINK( [
+#include <openssl/evp.h>
+#include <openssl/rand.h>
+],
+[
+char dummy[1];
+unsigned char a[1], b[1];
+
+EVP_CIPHER_CTX *ctx=EVP_CIPHER_CTX_new();
+EVP_EncryptInit_ex(ctx, EVP_des_cbc(), NULL, a, b);
+RAND_bytes(dummy, 1);
+
+], [
+ CRYPTLIBS="-lcrypto $KRBLIBS"
+ AC_MSG_RESULT(yes)
+ AC_DEFINE_UNQUOTED(HAVE_OPENSSL110, 1,
+ [ Whether OpenSSL 1.1.0 is installed ])
+], [
+ AC_MSG_RESULT(no)
+])
+
]
)
LIBS="-lssl $LIBS"