OpenSSL enabled: require OPENSSL_VERSION_NUMBER definition before usage.

This commit is contained in:
Yang Tse 2011-06-02 12:52:52 +02:00
parent aa76dec33a
commit 970117ef2d
2 changed files with 8 additions and 0 deletions

View file

@ -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