- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ExtractIDs (0.2 sec)
-
security/pkg/pki/util/san_test.go
{Id: asn1.ObjectIdentifier{1, 2, 3, 4}}, *sanExt, {Id: asn1.ObjectIdentifier{3, 2, 1}}, }, expectedIDs: []string{id}, }, } for id, tc := range testCases { actualIDs, err := ExtractIDs(tc.exts) if !reflect.DeepEqual(actualIDs, tc.expectedIDs) { t.Errorf("Case %q: unexpected identities: want %v but got %v", id, tc.expectedIDs, actualIDs) } if tc.expectedErrMsg != "" { if err == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 6.5K bytes - Viewed (0) -
security/pkg/pki/util/keycertbundle.go
} // CertOptions returns the certificate config based on currently stored cert. func (b *KeyCertBundle) CertOptions() (*CertOptions, error) { b.mutex.RLock() defer b.mutex.RUnlock() ids, err := ExtractIDs(b.cert.Extensions) if err != nil { return nil, fmt.Errorf("failed to extract id %v", err) } if len(ids) != 1 { return nil, fmt.Errorf("expect single id from the cert, found %v", ids) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jan 21 06:07:50 UTC 2024 - 10.5K bytes - Viewed (0)