static bool ssl_is_server_start;
static int ssl_protocol_version_to_openssl(int v, const char *guc_name);
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
+#ifndef SSL_CTX_set_min_proto_version
static int SSL_CTX_set_min_proto_version(SSL_CTX *ctx, int version);
static int SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version);
#endif
/*
* Replacements for APIs present in newer versions of OpenSSL
*/
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
+#ifndef SSL_CTX_set_min_proto_version
/*
* OpenSSL versions that support TLS 1.3 shouldn't get here because they
return 1; /* success */
}
-#endif /* OPENSSL_VERSION_NUMBER */
+#endif /* !SSL_CTX_set_min_proto_version */