summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/libssl_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/libssl_compat.c')
-rw-r--r--contrib/ntp/libntp/libssl_compat.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/contrib/ntp/libntp/libssl_compat.c b/contrib/ntp/libntp/libssl_compat.c
index ce6acb7..afe4d07 100644
--- a/contrib/ntp/libntp/libssl_compat.c
+++ b/contrib/ntp/libntp/libssl_compat.c
@@ -15,15 +15,18 @@
* ---------------------------------------------------------------------
*/
#include "config.h"
-
-#include <string.h>
-#include <openssl/bn.h>
-#include <openssl/evp.h>
-
#include "ntp_types.h"
/* ----------------------------------------------------------------- */
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#ifdef OPENSSL
+# include <string.h>
+# include <openssl/bn.h>
+# include <openssl/evp.h>
+#endif
+/* ----------------------------------------------------------------- */
+
+/* ----------------------------------------------------------------- */
+#if defined(OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L
/* ----------------------------------------------------------------- */
#include "libssl_compat.h"
@@ -325,7 +328,7 @@ sslshim_X509_get_signature_nid(
}
/* ----------------------------------------------------------------- */
-#else /* OPENSSL_VERSION_NUMBER >= v1.1.0 */
+#else /* OPENSSL && OPENSSL_VERSION_NUMBER >= v1.1.0 */
/* ----------------------------------------------------------------- */
NONEMPTY_TRANSLATION_UNIT
OpenPOWER on IntegriCloud