]> granicus.if.org Git - php/commit
Another Fix for Bug #68344 MySQLi does not provide way to disable peer certificate...
authorAndrey Hristov <andrey@php.net>
Tue, 27 Oct 2015 11:59:09 +0000 (12:59 +0100)
committerAndrey Hristov <andrey@php.net>
Tue, 27 Oct 2015 11:59:09 +0000 (12:59 +0100)
commit6d51b7b2e3468601acdaaf9041c9131b5aa47f98
tree2f2c193dc999941727f61c118ef06f532ff3e7e9
parent2f7a8515ca7f3ab4b0640677e4f476f87642ff61
Another Fix for Bug #68344  MySQLi does not provide way to disable peer certificate validation
Added the possibility to explicitly state that the peer certificate should not be checked.
Back to the default - checking the certificate.
Exported MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT
Usage : mysqli_real_connect( , , , , , MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT)

If mysqli_ssl_set() is not called, but only MYSQLI_CLIENT_SSL is passed, without the (don't) very flag,
then no verification takes place.
ext/mysqli/mysqli.c
ext/mysqli/tests/bug51647.phpt
ext/mysqli/tests/bug55283.phpt
ext/mysqli/tests/connect.inc
ext/mysqli/tests/mysqli_constants.phpt
ext/mysqlnd/mysqlnd.c
ext/mysqlnd/mysqlnd_enum_n_def.h
ext/mysqlnd/mysqlnd_net.c
ext/mysqlnd/mysqlnd_structs.h