Skip to content

Commit 8e3dee4

Browse files
committed
CDRIVER-3541 fix SSL renegotiation check
1 parent dcf4c67 commit 8e3dee4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libmongoc/src/mongoc/mongoc-openssl.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ _mongoc_openssl_ctx_new (mongoc_ssl_opt_t *opt)
493493
ssl_ctx_options |= SSL_OP_NO_COMPRESSION;
494494
#endif
495495

496-
/* man SSL_get_options says: "SSL_OP_NO_RENEGOTIATION options were added in OpenSSL 1.1.1" */
497-
#if OPENSSL_VERSION_NUMBER >= 0x10101000L
496+
/* man SSL_get_options says: "SSL_OP_NO_RENEGOTIATION options were added in OpenSSL 1.1.1". */
497+
#ifdef SSL_OP_NO_RENEGOTIATION
498498
ssl_ctx_options |= SSL_OP_NO_RENEGOTIATION;
499499
#endif
500500

0 commit comments

Comments
 (0)