Skip to content

Commit e5db9dd

Browse files
committed
PHPC-605: Fix exception logic for unsupported ca_dir option
1 parent 5096fcb commit e5db9dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php_phongo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,9 +1363,9 @@ static bool php_phongo_apply_ssl_opts(mongoc_client_t *client, zval *zdriverOpti
13631363

13641364
valid_options = true;
13651365

1366-
#ifdef MONGOC_ENABLE_SSL_OPENSSL
1366+
#if defined(MONGOC_ENABLE_SSL_SECURE_CHANNEL) || defined(MONGOC_ENABLE_SSL_SECURE_TRANSPORT)
13671367
if (ssl_opt.ca_dir) {
1368-
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "\"ca_dir\" or \"capath\" options may only be used with OpenSSL");
1368+
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "\"ca_dir\" and \"capath\" options are not supported by Secure Channel and Secure Transport");
13691369
valid_options = false;
13701370
}
13711371
#endif

0 commit comments

Comments
 (0)