Skip to content

Commit 9717d5c

Browse files
committed
PHPC-605: crl_file is not supported by LibreSSL or Secure Transport
1 parent a5667e6 commit 9717d5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

php_phongo.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,13 @@ static mongoc_ssl_opt_t *php_phongo_make_ssl_opt(zval *zoptions TSRMLS_DC)
13271327
}
13281328
#endif
13291329

1330+
#if defined(MONGOC_ENABLE_SSL_LIBRESSL) || defined(MONGOC_ENABLE_SSL_SECURE_TRANSPORT)
1331+
if (php_array_existsc(zoptions, "crl_file")) {
1332+
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "\"crl_file\" option is not supported by LibreSSL and Secure Transport");
1333+
return NULL;
1334+
}
1335+
#endif
1336+
13301337
ssl_opt = ecalloc(1, sizeof(mongoc_ssl_opt_t));
13311338

13321339
/* Check canonical option names first and fall back to SSL context options

0 commit comments

Comments
 (0)