]> Cypherpunks repositories - gostls13.git/commit
asn1: make interface consistent with json
authorRuss Cox <rsc@golang.org>
Fri, 24 Sep 2010 16:34:18 +0000 (12:34 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 24 Sep 2010 16:34:18 +0000 (12:34 -0400)
commit8206bafb2283ec761729f0ca9c65a1ccf1f2fba7
tree41fd8ea770b3b641c92d7f33cce2cd790b7ab91b
parent1d315a8abd5e662a194deee69bab658eb52ee7db
asn1: make interface consistent with json

Replace Marshal with MarshalToMemory
(no one was using old Marshal anyway).

Swap arguments to Unmarshal.

Fixes #1133.

R=agl1
CC=golang-dev
https://golang.org/cl/2249045
src/pkg/asn1/asn1.go
src/pkg/asn1/asn1_test.go
src/pkg/asn1/marshal.go
src/pkg/asn1/marshal_test.go
src/pkg/crypto/x509/x509.go