1
0
mirror of https://github.com/golang/go synced 2024-09-23 23:10:13 -06:00
go/api/next
Roland Shoemaker 2de2f6df64 crypto/x509: add new CRL parser, deprecate old one
Adds a new, cryptobyte based, CRL parser, which returns a
x509.RevocaitonList, rather than a pkix.CertificateList. This allows us
to return much more detailed information, as well as leaving open the
option of adding further information since RevocationList is not a
direct ASN.1 representation like pkix.CertificateList. Additionally
a new method is added to RevocationList, CheckSignatureFrom, which is
analogous to the method with the same name on Certificate, which
properly checks that the signature is from an issuing certiifcate.

This change also deprecates a number of older CRL related functions and
types, which have been replaced with the new functionality introduced
in this change:
  * crypto/x509.ParseCRL
  * crypto/x509.ParseDERCRL
  * crypto/x509.CheckCRLSignature
  * crypto/x509/pkix.CertificateList
  * crypto/x509/pkix.TBSCertificateList

Fixes #50674

Change-Id: I27dc219e39bef09a396e666b4fccaa32578fd913
Reviewed-on: https://go-review.googlesource.com/c/go/+/390834
Reviewed-by: Damien Neil <dneil@google.com>
Trust: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Auto-Submit: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-05 23:32:55 +00:00
..
42710.txt hash/maphash: add Bytes and String 2022-04-05 18:01:26 +00:00
45628.txt encoding/xml: expose decoder line and column 2022-03-27 20:26:46 +00:00
45754.txt
46057.txt api: add x509.CertPool.Equal to next/46057.txt 2022-04-05 03:54:36 +00:00
46059.txt
46121.txt html/template: make FuncMap a type alias of text/template.FuncMap 2022-03-31 00:54:34 +00:00
46229.txt debug: define ELF relocation for loong64 2022-04-04 21:43:42 +00:00
47005.txt
50601.txt
50674.txt crypto/x509: add new CRL parser, deprecate old one 2022-04-05 23:32:55 +00:00
51414.txt
51868.txt debug/pe: add APIs for reading section def aux info 2022-03-31 14:57:35 +00:00
regexpdepth.txt regexp/syntax: add and use ErrInvalidDepth 2022-04-04 10:59:27 +00:00