diff options
author | Heschi Kreinick <heschi@google.com> | 2022-05-10 16:48:37 -0400 |
---|---|---|
committer | Heschi Kreinick <heschi@google.com> | 2022-05-10 16:48:37 -0400 |
commit | 6b07de790c08967d0dbe3a36ec86f3d13e1cfcbd (patch) | |
tree | adb989cf6379ef90a35c68b7a1e0970cbc474b84 /src/crypto/x509/parser.go | |
parent | ed86dfc4e441ee7597586dd858fb87c987f1f3c8 (diff) | |
parent | 085c61ae517110168841be0afeb8f883d66fe95a (diff) | |
download | go-6b07de790c08967d0dbe3a36ec86f3d13e1cfcbd.tar.gz go-6b07de790c08967d0dbe3a36ec86f3d13e1cfcbd.zip |
[dev.boringcrypto.go1.17] all: merge go1.17.10 into dev.boringcrypto.go1.17
Change-Id: If81e53be5a9b4bd422668832fdadf716612426d8
Diffstat (limited to 'src/crypto/x509/parser.go')
-rw-r--r-- | src/crypto/x509/parser.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/x509/parser.go b/src/crypto/x509/parser.go index 9a500a8098..635e74bd89 100644 --- a/src/crypto/x509/parser.go +++ b/src/crypto/x509/parser.go @@ -941,10 +941,10 @@ func parseCertificate(der []byte) (*Certificate, error) { } if cert.Version > 1 { - if !tbs.SkipOptionalASN1(cryptobyte_asn1.Tag(1).Constructed().ContextSpecific()) { + if !tbs.SkipOptionalASN1(cryptobyte_asn1.Tag(1).ContextSpecific()) { return nil, errors.New("x509: malformed issuerUniqueID") } - if !tbs.SkipOptionalASN1(cryptobyte_asn1.Tag(2).Constructed().ContextSpecific()) { + if !tbs.SkipOptionalASN1(cryptobyte_asn1.Tag(2).ContextSpecific()) { return nil, errors.New("x509: malformed subjectUniqueID") } if cert.Version == 3 { |