mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-06-27 10:15:33 +02:00
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…
x
Reference in New Issue
Block a user