diff options
author | Yang Tse <yangsita@gmail.com> | 2011-06-02 12:52:52 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-06-02 12:52:52 +0200 |
commit | 970117ef2df2c63ea77eb7adf7efa442844779a3 (patch) | |
tree | 0b9f2d4d34f9946a220a96a4723059aabd8eaf09 /lib | |
parent | aa76dec33af3d93f046143e7e7c853c49ef54380 (diff) |
OpenSSL enabled: require OPENSSL_VERSION_NUMBER definition before usage.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_ntlm.c | 4 | ||||
-rw-r--r-- | lib/ssluse.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index bcb844208..c3ceadc35 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -83,6 +83,10 @@ # 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 diff --git a/lib/ssluse.c b/lib/ssluse.c index 38ad2b1ff..67fd99a38 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -76,6 +76,10 @@ /* 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 |