File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,11 @@ if (PHP_MONGODB != "no") {
170
170
/* PHP 7.1.2 introduced SETUP_OPENSSL(), which supports OpenSSL 1.1.x. Earlier
171
171
* versions will use the legacy check for OpenSSL 1.0.x and lower. */
172
172
if ( typeof SETUP_OPENSSL === 'function' ) {
173
- mongoc_ssl_found = SETUP_OPENSSL ( "mongodb" , mongoc_ssl_path_to_check ) > 0 ;
173
+ openssl_type = SETUP_OPENSSL ( "mongodb" , mongoc_ssl_path_to_check ) ;
174
+ mongoc_ssl_found = openssl_type > 0 ;
175
+ if ( openssl_type >= 2 ) {
176
+ mongoc_opts . MONGOC_HAVE_ASN1_STRING_GET0_DATA = 1 ;
177
+ }
174
178
} else if ( CHECK_LIB ( "ssleay32.lib" , "mongodb" , mongoc_ssl_path_to_check ) &&
175
179
CHECK_LIB ( "libeay32.lib" , "mongodb" , mongoc_ssl_path_to_check ) &&
176
180
CHECK_LIB ( "crypt32.lib" , "mongodb" , mongoc_ssl_path_to_check ) &&
You can’t perform that action at this time.
0 commit comments