]> Cypherpunks repositories - gostls13.git/commit
asn1: Fixes and additions to marshalling
authorAdam Langley <agl@golang.org>
Fri, 5 Feb 2010 10:42:02 +0000 (05:42 -0500)
committerAdam Langley <agl@golang.org>
Fri, 5 Feb 2010 10:42:02 +0000 (05:42 -0500)
commit95e08bde4475638452a0d790aecb8715c97f4145
tree64fc6141f476f4e78a9f94168dd66843c7cba280
parent5d827fac39918005361fccc67b4339bcb7d19035
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
https://golang.org/cl/201049
src/pkg/asn1/asn1.go
src/pkg/asn1/asn1_test.go
src/pkg/asn1/common.go
src/pkg/asn1/marshal.go
src/pkg/asn1/marshal_test.go
src/pkg/crypto/x509/x509.go