summaryrefslogtreecommitdiff
path: root/lib/ssluse.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-06-02 12:52:52 +0200
committerYang Tse <yangsita@gmail.com>2011-06-02 12:52:52 +0200
commit970117ef2df2c63ea77eb7adf7efa442844779a3 (patch)
tree0b9f2d4d34f9946a220a96a4723059aabd8eaf09 /lib/ssluse.c
parentaa76dec33af3d93f046143e7e7c853c49ef54380 (diff)
downloadcurl-970117ef2df2c63ea77eb7adf7efa442844779a3.tar.gz
OpenSSL enabled: require OPENSSL_VERSION_NUMBER definition before usage.
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c4
1 files changed, 4 insertions, 0 deletions
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