diff options
author | Adam Langley <agl@golang.org> | 2010-02-05 05:42:02 -0500 |
---|---|---|
committer | Adam Langley <agl@golang.org> | 2010-02-05 05:42:02 -0500 |
commit | af2cf484b2909e814647325cd839684eb891d46b (patch) | |
tree | 0ae491cfcd484be4fe151362ea13eea1d3fc0c7f /src/pkg/crypto | |
parent | 99c277043348551d3075589701a165ea0b7a875e (diff) | |
download | golang-af2cf484b2909e814647325cd839684eb891d46b.tar.gz |
asn1: Fixes and additions to marshalling
Marshalling:
* Fixes several silly bugs.
* Support the RawContents type.
* Support the RawValue type.
* Recurse into nested interface{}.
Both directions:
* Better handling of SETs. You can now tag an element in a
structure with "set" to get the correct tag for serialisation.
* For types that aren't in a structure, you can now name them
with "SET" on the end.
* SETs are no longer implicitly treated as SEQUENCEs.
R=rsc
CC=golang-dev
http://codereview.appspot.com/201049
Diffstat (limited to 'src/pkg/crypto')
-rw-r--r-- | src/pkg/crypto/x509/x509.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/crypto/x509/x509.go b/src/pkg/crypto/x509/x509.go index dcd12f05f..a85022859 100644 --- a/src/pkg/crypto/x509/x509.go +++ b/src/pkg/crypto/x509/x509.go @@ -95,9 +95,9 @@ type algorithmIdentifier struct { Algorithm asn1.ObjectIdentifier } -type rdnSequence []relativeDistinguishedName +type rdnSequence []relativeDistinguishedNameSET -type relativeDistinguishedName []attributeTypeAndValue +type relativeDistinguishedNameSET []attributeTypeAndValue type attributeTypeAndValue struct { Type asn1.ObjectIdentifier |