]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/x509: don't fail on optional auth key id fields
authorRoland Shoemaker <roland@golang.org>
Tue, 29 Jun 2021 16:20:04 +0000 (09:20 -0700)
committerRoland Shoemaker <roland@golang.org>
Wed, 30 Jun 2021 01:29:49 +0000 (01:29 +0000)
commitc45e800e0cb237fcedc9a3e4fd243e3a7f47334c
treee96802653d577691fe2301c1ce5ed76db35db4fe
parentf9d50953b94c15936a72a39a205b3d72ea6dee41
crypto/x509: don't fail on optional auth key id fields

If a certificate contains an AuthorityKeyIdentifier extension that
lacks the keyIdentifier field, but contains the authorityCertIssuer
and/or the authorityCertSerialNumber fields, don't return an error and
continue parsing.

Fixes #46854

Change-Id: I82739b415441f639a722755cc1f449d73078adfc
Reviewed-on: https://go-review.googlesource.com/c/go/+/331689
Trust: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/parser.go
src/crypto/x509/x509_test.go