From e590e3570cef4d0718ea1db2920e9ab31c40cfca Mon Sep 17 00:00:00 2001 From: Philippe Boneff Date: Fri, 14 Feb 2025 12:10:21 +0000 Subject: [PATCH] migrate options to local certPool # Conflicts: # internal/x509util/verify.go --- internal/x509util/verify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/x509util/verify.go b/internal/x509util/verify.go index bb46612..af54dd1 100644 --- a/internal/x509util/verify.go +++ b/internal/x509util/verify.go @@ -50,10 +50,10 @@ type VerifyOptions struct { // Intermediates is an optional pool of certificates that are not trust // anchors, but can be used to form a chain from the leaf certificate to a // root certificate. - Intermediates *x509.CertPool + Intermediates *CertPool // Roots is the set of trusted root certificates the leaf certificate needs // to chain up to. If nil, the system roots or the platform verifier are used. - Roots *x509.CertPool + Roots *CertPool // KeyUsages specifies which Extended Key Usage values are acceptable. A // chain is accepted if it allows any of the listed values. An empty list // means ExtKeyUsageServerAuth. To accept any key usage, include ExtKeyUsageAny.