winssl: Enable hostname verification of IP address using SAN or CN
authorDavid Ryskalczyk <d235j.1@gmail.com>
Sun, 23 Feb 2014 17:38:58 +0000 (18:38 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Mon, 24 Feb 2014 21:12:55 +0000 (22:12 +0100)
commit63fc8ee7be2b712e7af5029f4f8a86a0dfd71b38
tree1539274155e5966b083fd122e507976add1c1a16
parentc27cc68815acd315c663e08ee9e3450b153f095f
winssl: Enable hostname verification of IP address using SAN or CN

Original commit message was:
 Don't omit CN verification in SChannel when an IP address is used.

Side-effect of this change:
 SChannel and CryptoAPI do not support the iPAddress subjectAltName
 according to RFC 2818. If present, SChannel will first compare the
 IP address to the dNSName subjectAltNames and then fallback to the
 most specific Common Name in the Subject field of the certificate.

 This means that after this change curl will not connect to SSL/TLS
 hosts as long as the IP address is not specified in the SAN or CN
 of the server certificate or the verifyhost option is disabled.
lib/vtls/curl_schannel.c