Add MarshalRDNSequence

This commit is contained in:
Andrew Ayer 2019-09-12 11:36:04 -07:00
parent 93fccdab3e
commit a6c74b6009
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ func ParseRDNSequence(rdnsBytes []byte) (RDNSequence, error) {
return rdns, nil return rdns, nil
} }
func MarshalRDNSequence(rdns RDNSequence) ([]byte, error) {
return asn1.Marshal(rdns)
}
type TBSCertificate struct { type TBSCertificate struct {
Raw asn1.RawContent Raw asn1.RawContent