Skip to content

Commit 39e03b4

Browse files
authored
crypto: use OPENSSL_SIZE_T instead of hard coding int
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #66889 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent c7974d9 commit 39e03b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/crypto/crypto_context.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ SpkiCheck CheckSPKIs(const STACK_OF(X509) * certs,
14941494
X509** offender,
14951495
int* depth) {
14961496
if (certs == nullptr) return SpkiCheck::kAllowed;
1497-
for (int i = 0; i < sk_X509_num(certs); i++) {
1497+
for (OPENSSL_SIZE_T i = 0; i < sk_X509_num(certs); i++) {
14981498
X509* cert = sk_X509_value(certs, i);
14991499
SpkiCheck result = CheckSPKI(cert);
15001500
if (result != SpkiCheck::kAllowed) {

0 commit comments

Comments
 (0)