summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@mongodb.com>2015-03-04 16:03:45 -0800
committerHannes Magnusson <bjori@mongodb.com>2015-03-04 16:03:45 -0800
commit3c2c029bfd0ca0bae9e9686703a41f4b21c962d1 (patch)
tree622cd266e48f87d14e3c720ee425d64b3010602b
parent241f3c34b89ab55432d5af3fd1e4217540e161a3 (diff)
downloadphp-git-3c2c029bfd0ca0bae9e9686703a41f4b21c962d1.tar.gz
hexadecimal is case*in*sensitive
-rw-r--r--ext/openssl/xp_ssl.c2
1 files changed, 1 insertions, 1 deletions
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);
}