- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestExtractIDsFromSANWithError (0.3 sec)
-
security/pkg/pki/util/san_test.go
func TestBuildSANExtensionWithError(t *testing.T) { id := Identity{Type: 10} if _, err := BuildSANExtension([]Identity{id}); err == nil { t.Error("Expecting error to be returned but got nil") } } func TestExtractIDsFromSANWithError(t *testing.T) { testCases := map[string]struct { ext *pkix.Extension }{ "Wrong OID": { ext: &pkix.Extension{ Id: asn1.ObjectIdentifier{1, 2, 3}, }, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 6.5K bytes - Viewed (0)