]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509/pkix: move crl deprecation message
authorRoland Shoemaker <roland@golang.org>
Tue, 28 Jun 2022 01:04:56 +0000 (18:04 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 29 Jun 2022 17:10:00 +0000 (17:10 +0000)
There was a deprecation message on RevokedCertificate which was
intended to be on CertificateList.

Change-Id: Ia378935afc75c36702e64cf33ea5c8a24c1488ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/414754
Auto-Submit: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
src/crypto/x509/pkix/pkix.go

index bea8fe7f75059e695e0d4304b4b4674438ed3ba0..22a50eef39d647b1d8acba18998bb7900fc1c6c0 100644 (file)
@@ -283,6 +283,8 @@ func oidInAttributeTypeAndValue(oid asn1.ObjectIdentifier, atv []AttributeTypeAn
 // CertificateList represents the ASN.1 structure of the same name. See RFC
 // 5280, section 5.1. Use Certificate.CheckCRLSignature to verify the
 // signature.
+//
+// Deprecated: x509.RevocationList should be used instead.
 type CertificateList struct {
        TBSCertList        TBSCertificateList
        SignatureAlgorithm AlgorithmIdentifier
@@ -311,8 +313,6 @@ type TBSCertificateList struct {
 
 // RevokedCertificate represents the ASN.1 structure of the same name. See RFC
 // 5280, section 5.1.
-//
-// Deprecated: x509.RevocationList should be used instead.
 type RevokedCertificate struct {
        SerialNumber   *big.Int
        RevocationTime time.Time