Home | History | Annotate | Download | only in x509

Lines Matching refs:extension

145 	Extensions         []pkix.Extension `asn1:"optional,explicit,tag:3"`
657 Extensions []pkix.Extension
663 ExtraExtensions []pkix.Extension
665 // UnhandledCriticalExtensions contains a list of extension IDs that
813 // "If the basic constraints extension is not present in a version 3
814 // certificate, or the extension is present but the cA boolean is not
952 return "x509: unhandled critical extension"
1081 func forEachSAN(extension []byte, callback func(tag int, data []byte) error) error {
1099 rest, err := asn1.Unmarshal(extension, &seq)
1103 return errors.New("x509: trailing data after X.509 extension")
1191 func parseNameConstraintsExtension(out *Certificate, e pkix.Extension) (unhandled bool, err error) {
1215 return false, errors.New("x509: invalid NameConstraints extension")
1223 return false, errors.New("x509: empty name constraints extension")
1232 return nil, nil, nil, nil, fmt.Errorf("x509: invalid NameConstraints extension")
1660 // oidNotInExtensions returns whether an extension with the given oid exists in
1662 func oidInExtensions(oid asn1.ObjectIdentifier, extensions []pkix.Extension) bool {
1672 // SubjectAlternativeName extension.
1705 func buildExtensions(template *Certificate, subjectIsEmpty bool, authorityKeyId []byte) (ret []pkix.Extension, err error) {
1706 ret = make([]pkix.Extension, 10 /* maximum number of elements. */)
1816 // subjectAltName extension ... is marked as critical?
1960 // Adding another extension here? Remember to update the maximum number
2215 var aki pkix.Extension
2268 Extensions []pkix.Extension
2277 ExtraExtensions []pkix.Extension
2343 func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension, error) {
2351 var ret []pkix.Extension
2363 var extensions []pkix.Extension
2402 var extensions []pkix.Extension
2411 extensions = append(extensions, pkix.Extension{
2443 // this extension and it takes priority.
2579 for _, extension := range out.Extensions {
2580 if extension.Id.Equal(oidExtensionSubjectAltName) {
2581 out.DNSNames, out.EmailAddresses, out.IPAddresses, out.URIs, err = parseSANExtension(extension.Value)