From a8f52b7cb1cfc3b74f614fb9b487e0f1deaf550e Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 21 Oct 2026 10:02:35 +0200 Subject: [PATCH] crypto: use `OPENSSL_SIZE_T` instead of hard coding `int` Signed-off-by: Antoine du Hamel --- src/crypto/crypto_context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/crypto_context.cc b/src/crypto/crypto_context.cc index 05e8e5f85c0b..13edcb588864 100644 --- a/src/crypto/crypto_context.cc +++ b/src/crypto/crypto_context.cc @@ -1494,7 +1494,7 @@ SpkiCheck CheckSPKIs(const STACK_OF(X509) * certs, X509** offender, int* depth) { if (certs == nullptr) return SpkiCheck::kAllowed; - for (int i = 0; i < sk_X509_num(certs); i++) { + for (OPENSSL_SIZE_T i = 0; i < sk_X509_num(certs); i++) { X509* cert = sk_X509_value(certs, i); SpkiCheck result = CheckSPKI(cert); if (result != SpkiCheck::kAllowed) {