mirror of
https://github.com/golang/go
synced 2024-09-29 18:14:28 -06:00
Add comment on utility of tbsCertificateList.Raw
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
This commit is contained in:
parent
f0f517ab4b
commit
033115dd5e
@ -2162,7 +2162,7 @@ type certificateList struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type tbsCertificateList struct {
|
type tbsCertificateList struct {
|
||||||
Raw asn1.RawContent
|
Raw asn1.RawContent
|
||||||
Version int `asn1:"optional,default:0"`
|
Version int `asn1:"optional,default:0"`
|
||||||
Signature pkix.AlgorithmIdentifier
|
Signature pkix.AlgorithmIdentifier
|
||||||
Issuer asn1.RawValue
|
Issuer asn1.RawValue
|
||||||
@ -2264,6 +2264,9 @@ func CreateRevocationList(rand io.Reader, template *RevocationList, issuer *Cert
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Optimization to only marshal this struct once, when signing and
|
||||||
|
// then embedding in certificateList below.
|
||||||
tbsCertList.Raw = tbsCertListContents
|
tbsCertList.Raw = tbsCertListContents
|
||||||
|
|
||||||
input := tbsCertListContents
|
input := tbsCertListContents
|
||||||
|
Loading…
Reference in New Issue
Block a user