Add MarshalRDNSequence
This commit is contained in:
parent
93fccdab3e
commit
a6c74b6009
4
x509.go
4
x509.go
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue