disallow old SSL versions; refs #20

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

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

Loading…
Cancel
Save