From 3ae1ea04e561a95fbd96d6f1e721a9191417e985 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 5 Sep 2024 19:47:26 +0200 Subject: [PATCH] fixup! fixup! fixup! tls: add `allowPartialTrustChain` flag --- src/crypto/crypto_context.cc | 1 + src/crypto/crypto_context.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto/crypto_context.cc b/src/crypto/crypto_context.cc index 3af24c2d89bb0b..ad981617e41b68 100644 --- a/src/crypto/crypto_context.cc +++ b/src/crypto/crypto_context.cc @@ -756,6 +756,7 @@ void SecureContext::SetCert(const FunctionCallbackInfo& args) { USE(sc->AddCert(env, std::move(bio))); } +// NOLINTNEXTLINE(runtime/int) void SecureContext::SetX509StoreFlag(unsigned long flags) { X509_STORE* cert_store = GetCertStoreOwnedByThisSecureContext(); CHECK_EQ(1, X509_STORE_set_flags(cert_store, flags)); diff --git a/src/crypto/crypto_context.h b/src/crypto/crypto_context.h index c399fd15340598..c6c10b1426ac6b 100644 --- a/src/crypto/crypto_context.h +++ b/src/crypto/crypto_context.h @@ -64,7 +64,7 @@ class SecureContext final : public BaseObject { void SetCACert(const BIOPointer& bio); void SetRootCerts(); - void SetX509StoreFlag(unsigned long flags); + void SetX509StoreFlag(unsigned long flags); // NOLINT(runtime/int) X509_STORE* GetCertStoreOwnedByThisSecureContext(); // TODO(joyeecheung): track the memory used by OpenSSL types