]> granicus.if.org Git - php/commitdiff
hexadecimal is case*in*sensitive
authorHannes Magnusson <bjori@mongodb.com>
Thu, 5 Mar 2015 00:03:45 +0000 (16:03 -0800)
committerHannes Magnusson <bjori@mongodb.com>
Thu, 5 Mar 2015 00:03:45 +0000 (16:03 -0800)
ext/openssl/xp_ssl.c

index 54f0435e8fab8feb97b9b54459e70dcb261ee89b..baf5f96b7de1020e1f9f42ca0b142300a317a776 100644 (file)
@@ -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);
        }