type verifyTest … var verifyTests … func expectHostnameError(msg string) func(*testing.T, error) { … } func expectExpired(t *testing.T, err error) { … } func expectUsageError(t *testing.T, err error) { … } func expectAuthorityUnknown(t *testing.T, err error) { … } func expectHashError(t *testing.T, err error) { … } func expectNameConstraintsError(t *testing.T, err error) { … } func expectNotAuthorizedError(t *testing.T, err error) { … } func expectUnhandledCriticalExtension(t *testing.T, err error) { … } func certificateFromPEM(pemBytes string) (*Certificate, error) { … } func testVerify(t *testing.T, test verifyTest, useSystemRoots bool) { … } func TestGoVerify(t *testing.T) { … } func TestSystemVerify(t *testing.T) { … } func chainToDebugString(chain []*Certificate) string { … } func nameToKey(name *pkix.Name) string { … } const gtsIntermediate … const gtsRoot … const googleLeaf … const googleLeafWithInvalidHash … const dnssecExpLeaf … const startComIntermediate … const startComRoot … const smimeLeaf … const smimeIntermediate … const smimeRoot … var nameConstraintsLeaf … var nameConstraintsIntermediate1 … var nameConstraintsIntermediate2 … var globalSignRoot … const digicertRoot … const trustAsiaSHA384Intermediate … const trustAsiaLeaf … const selfSigned … const issuerSubjectMatchRoot … const issuerSubjectMatchLeaf … const x509v1TestRoot … const x509v1TestIntermediate … const x509v1TestLeaf … const ignoreCNWithSANRoot … const ignoreCNWithSANLeaf … const excludedNamesLeaf … const excludedNamesIntermediate … const excludedNamesRoot … const invalidCNRoot … const validCNWithoutSAN … const rootWithoutSKID … const leafWithAKID … const rootMatchingSKIDMismatchingSubject … const rootMismatchingSKIDMatchingSubject … const leafMatchingAKIDMatchingIssuer … var unknownAuthorityErrorTests … func TestUnknownAuthorityError(t *testing.T) { … } var nameConstraintTests … func TestNameConstraints(t *testing.T) { … } const selfSignedWithCommonName … const selfSignedNoCommonNameWithOrgName … const selfSignedNoCommonNameNoOrgName … const criticalExtRoot … const criticalExtIntermediate … const criticalExtLeafWithExt … const criticalExtIntermediateWithExt … const criticalExtLeaf … func TestValidHostname(t *testing.T) { … } func generateCert(cn string, isCA bool, issuer *Certificate, issuerKey crypto.PrivateKey) (*Certificate, crypto.PrivateKey, error) { … } func TestPathologicalChain(t *testing.T) { … } func TestLongChain(t *testing.T) { … } func TestSystemRootsError(t *testing.T) { … } func TestSystemRootsErrorUnwrap(t *testing.T) { … } func macosMajorVersion(t *testing.T) (int, error) { … } func TestIssue51759(t *testing.T) { … } type trustGraphEdge … type rootDescription … type trustGraphDescription … func genCertEdge(t *testing.T, subject string, key crypto.Signer, mutateTmpl func(*Certificate), certType int, issuer *Certificate, signer crypto.Signer) *Certificate { … } func buildTrustGraph(t *testing.T, d trustGraphDescription) (*CertPool, *CertPool, *Certificate) { … } func chainsToStrings(chains [][]*Certificate) []string { … } func TestPathBuilding(t *testing.T) { … } func TestEKUEnforcement(t *testing.T) { … } func TestVerifyEKURootAsLeaf(t *testing.T) { … } func TestVerifyNilPubKey(t *testing.T) { … } func TestVerifyBareWildcard(t *testing.T) { … }