From: Hannes Magnusson Date: Thu, 5 Mar 2015 00:03:45 +0000 (-0800) Subject: hexadecimal is case*in*sensitive X-Git-Tag: php-5.6.7RC1~12^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c2c029bfd0ca0bae9e9686703a41f4b21c962d1;p=php hexadecimal is case*in*sensitive --- diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 54f0435e8f..baf5f96b7d 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -275,7 +275,7 @@ static int php_x509_fingerprint_cmp(X509 *peer, const char *method, const char * int result = -1; if (php_openssl_x509_fingerprint(peer, method, 0, &fingerprint, &fingerprint_len TSRMLS_CC) == SUCCESS) { - result = strcmp(expected, fingerprint); + result = strcasecmp(expected, fingerprint); efree(fingerprint); }