From bf5017465228ba11243b6767416d47e30e29143d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 11 Jun 2012 06:25:05 +0000 Subject: [PATCH] disallow old SSL versions; refs #20 --- src/openssl.hxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/openssl.hxx b/src/openssl.hxx index 39e4326..fb4da80 100644 --- a/src/openssl.hxx +++ b/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