]> Cypherpunks repositories - gostls13.git/commit
asn1: Improved encoding/decoding for OID types
authorGerasimos Dimitriadis <gedimitr@gmail.com>
Mon, 10 Jun 2013 22:14:47 +0000 (18:14 -0400)
committerAdam Langley <agl@golang.org>
Mon, 10 Jun 2013 22:14:47 +0000 (18:14 -0400)
commit02a891b30ba44fd2185ad6292ff6d862b3946084
treef070fc6a7f4b7e67cf80970fe530c980e65385d5
parent71051953e008b5e272ea2e83d2b84bdc13924628
asn1: Improved encoding/decoding for OID types

The first identifier in an Object Identifer must be between 0 and 2
inclusive. The range of values that the second one can take depends
on the value of the first one.
The two first identifiers are not necessarily encoded in a single octet,
but in a varint.

R=golang-dev, agl
CC=golang-dev
https://golang.org/cl/10140046
src/pkg/crypto/x509/x509_test.go
src/pkg/encoding/asn1/asn1.go
src/pkg/encoding/asn1/asn1_test.go
src/pkg/encoding/asn1/marshal.go
src/pkg/encoding/asn1/marshal_test.go