diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index 877851a73cd..f2738c351f9 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -48,9 +48,7 @@ #include #include #include -#ifndef OPENSSL_NO_ECDH #include -#endif #include /* @@ -2115,7 +2113,6 @@ initialize_dh(SSL_CTX *context, bool isServerStart) static bool initialize_ecdh(SSL_CTX *context, bool isServerStart) { -#ifndef OPENSSL_NO_ECDH if (SSL_CTX_set1_groups_list(context, SSLECDHCurve) != 1) { /* @@ -2133,7 +2130,6 @@ initialize_ecdh(SSL_CTX *context, bool isServerStart) errhint("Ensure that each group name is spelled correctly and supported by the installed version of OpenSSL.")); return false; } -#endif return true; } diff --git a/src/backend/libpq/be-secure.c b/src/backend/libpq/be-secure.c index 617704bb993..86ceea72e64 100644 --- a/src/backend/libpq/be-secure.c +++ b/src/backend/libpq/be-secure.c @@ -52,7 +52,7 @@ bool ssl_loaded_verify_locations = false; char *SSLCipherSuites = NULL; char *SSLCipherList = NULL; -/* GUC variable for default ECHD curve. */ +/* GUC variable for default ECDH curve. */ char *SSLECDHCurve; /* GUC variable: if false, prefer client ciphers */