mirror of
https://github.com/golang/go
synced 2024-09-29 16:34:31 -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 {
|
||||
Raw asn1.RawContent
|
||||
Raw asn1.RawContent
|
||||
Version int `asn1:"optional,default:0"`
|
||||
Signature pkix.AlgorithmIdentifier
|
||||
Issuer asn1.RawValue
|
||||
@ -2264,6 +2264,9 @@ func CreateRevocationList(rand io.Reader, template *RevocationList, issuer *Cert
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Optimization to only marshal this struct once, when signing and
|
||||
// then embedding in certificateList below.
|
||||
tbsCertList.Raw = tbsCertListContents
|
||||
|
||||
input := tbsCertListContents
|
||||
|
Loading…
Reference in New Issue
Block a user