diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2016-08-29 20:16:02 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2016-08-29 20:16:02 +0300 |
commit | 9b7cd59af1afcfbd786921d5cf73befb5fefa2f7 (patch) | |
tree | 6020bf1a8fbd72fa73ac490b2a72b2f50c9800db /src/backend | |
parent | cf34fdbbe1452b9e19c0956bc48494889e1b2777 (diff) | |
download | postgresql-9b7cd59af1afcfbd786921d5cf73befb5fefa2f7.tar.gz postgresql-9b7cd59af1afcfbd786921d5cf73befb5fefa2f7.zip |
Remove support for OpenSSL versions older than 0.9.8.
OpenSSL officially only supports 1.0.1 and newer. Some OS distributions
still provide patches for 0.9.8, but anything older than that is not
interesting anymore. Let's simplify things by removing compatibility code.
Andreas Karlsson, with small changes by me.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/libpq/be-secure-openssl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index f6adb155c6e..e5f434ca17a 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -53,10 +53,8 @@ #include <openssl/ssl.h> #include <openssl/dh.h> -#if SSLEAY_VERSION_NUMBER >= 0x0907000L #include <openssl/conf.h> -#endif -#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_ECDH) +#ifndef OPENSSL_NO_ECDH #include <openssl/ec.h> #endif @@ -166,9 +164,7 @@ be_tls_init(void) if (!SSL_context) { -#if SSLEAY_VERSION_NUMBER >= 0x0907000L OPENSSL_config(NULL); -#endif SSL_library_init(); SSL_load_error_strings(); @@ -978,7 +974,7 @@ info_cb(const SSL *ssl, int type, int args) static void initialize_ecdh(void) { -#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_ECDH) +#ifndef OPENSSL_NO_ECDH EC_KEY *ecdh; int nid; |