]> granicus.if.org Git - curl/commitdiff
OpenSSL enabled: require OPENSSL_VERSION_NUMBER definition before usage.
authorYang Tse <yangsita@gmail.com>
Thu, 2 Jun 2011 10:52:52 +0000 (12:52 +0200)
committerYang Tse <yangsita@gmail.com>
Thu, 2 Jun 2011 10:52:52 +0000 (12:52 +0200)
lib/http_ntlm.c
lib/ssluse.c

index bcb844208074db103cb6b6282e0b68f67d03ea11..c3ceadc35a9fae687faea145de3c159a0179fe28 100644 (file)
 #      include <rand.h>
 #    endif
 
+#ifndef OPENSSL_VERSION_NUMBER
+#error "OPENSSL_VERSION_NUMBER not defined"
+#endif
+
 #if OPENSSL_VERSION_NUMBER < 0x00907001L
 #define DES_key_schedule des_key_schedule
 #define DES_cblock des_cblock
index 38ad2b1ff4edbf0df57563896093f2b92af04d14..67fd99a38ea251a3c7bd89432923211f721daade 100644 (file)
 /* The last #include file should be: */
 #include "memdebug.h"
 
+#ifndef OPENSSL_VERSION_NUMBER
+#error "OPENSSL_VERSION_NUMBER not defined"
+#endif
+
 #if OPENSSL_VERSION_NUMBER >= 0x0090581fL
 #define HAVE_SSL_GET1_SESSION 1
 #else