Skip to content

Commit 3c2c029

Browse files
committed
hexadecimal is case*in*sensitive
1 parent 241f3c3 commit 3c2c029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static int php_x509_fingerprint_cmp(X509 *peer, const char *method, const char *
275275
int result = -1;
276276

277277
if (php_openssl_x509_fingerprint(peer, method, 0, &fingerprint, &fingerprint_len TSRMLS_CC) == SUCCESS) {
278-
result = strcmp(expected, fingerprint);
278+
result = strcasecmp(expected, fingerprint);
279279
efree(fingerprint);
280280
}
281281

0 commit comments

Comments
 (0)