Skip to content

Commit c32db7e

Browse files
committed
openssl: Use true / false instead of 1 / 0 for bool parameters (2)
Changes done with Coccinelle: @r1@ identifier F; identifier p; typedef bool; type T; parameter list [n1] PL1; parameter list [n2] PL2; @@ T F(PL1, bool p, PL2); @r2@ identifier r1.F; expression list [r1.n1] EL1; expression list [r1.n2] EL2; @@ F(EL1, ( - 1 + true | - 0 + false ) , EL2)
1 parent c9b1759 commit c32db7e

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
@@ -360,7 +360,7 @@ static int php_openssl_x509_fingerprint_cmp(X509 *peer, const char *method, cons
360360
zend_string *fingerprint;
361361
int result = -1;
362362

363-
fingerprint = php_openssl_x509_fingerprint(peer, method, 0);
363+
fingerprint = php_openssl_x509_fingerprint(peer, method, false);
364364
if (fingerprint) {
365365
result = strcasecmp(expected, ZSTR_VAL(fingerprint));
366366
zend_string_release_ex(fingerprint, 0);

0 commit comments

Comments
 (0)