disallow old SSL versions; refs #20

master
Marc Wäckerlin 13 years ago
parent 04b52e2824
commit bf50174652
  1. 12
      src/openssl.hxx

@ -24,13 +24,21 @@
#ifndef OPENSSL_VERSION_NUMBER
# error OpenSSL Version Number not Found
#elif OPENSSL_VERSION_NUMBER < 0x00908000L
# warning OpenSSL older than 0.8 detected
# ifdef ALLOW_SSL_OLDER_THAN_0_8
# warning OpenSSL older than 0.8 detected
# else
# error OpenSSL older than 0.8 detected
# endif
# define OPENSSL_0_7
# define V0_CONST
# define CV_STACK
# define CV_X509
#elif OPENSSL_VERSION_NUMBER < 0x10000000L
# warning OpenSSL 0.8 detected
# ifdef ALLOW_SSL_0_8
# warning OpenSSL 0.8 detected
# else
# error OpenSSL 0.8 detected
# endif
# define OPENSSL_0_8
# define V0_CONST const
# define CV_STACK

Loading…
Cancel
Save