Skip to content
Snippets Groups Projects
Commit 970117ef authored by Yang Tse's avatar Yang Tse
Browse files

OpenSSL enabled: require OPENSSL_VERSION_NUMBER definition before usage.

parent aa76dec3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment