From 3c2c029bfd0ca0bae9e9686703a41f4b21c962d1 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 4 Mar 2015 16:03:45 -0800 Subject: [PATCH] hexadecimal is case*in*sensitive --- ext/openssl/xp_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.40.0