]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Make OpenSSL ENGINE support optional 4/head
authorRosen Penev <rosenp@gmail.com>
Sun, 6 Jan 2019 05:05:55 +0000 (21:05 -0800)
committerGitHub <noreply@github.com>
Sun, 6 Jan 2019 05:05:55 +0000 (21:05 -0800)
keys.c

diff --git a/keys.c b/keys.c
index bb7bd6cd7cae2635aad910ce618b41d7deb64a25..2a8593dfb80926cb8890a9504c7711136624f0a6 100644 (file)
--- a/keys.c
+++ b/keys.c
 
 #ifdef HAVE_SSL
 #include <openssl/ssl.h>
-#include <openssl/engine.h>
 #include <openssl/rand.h>
+#ifndef OPENSSL_NO_ENGINE
+#include <openssl/engine.h>
+#endif
 #endif /* HAVE_SSL */
 
 ldns_lookup_table ldns_signing_algorithms[] = {
@@ -99,7 +101,7 @@ ldns_key_new_frm_fp(ldns_key **k, FILE *fp)
        return ldns_key_new_frm_fp_l(k, fp, NULL);
 }
 
-#ifdef HAVE_SSL
+#if defined(HAVE_SSL) && !defined(OPENSSL_NO_ENGINE)
 ldns_status
 ldns_key_new_frm_engine(ldns_key **key, ENGINE *e, char *key_id, ldns_algorithm alg)
 {