]> Cypherpunks repositories - gostls13.git/commit
crypto: reorg, cleanup and add function for generating CRLs.
authorAdam Langley <agl@golang.org>
Mon, 6 Jun 2011 14:35:46 +0000 (10:35 -0400)
committerAdam Langley <agl@golang.org>
Mon, 6 Jun 2011 14:35:46 +0000 (10:35 -0400)
commitc281ddf1eb4e6cff20096322f73724d2b21b74de
tree83460f45252765e746bed4f254ae3391ce5654f2
parent548e3d0342cfa31dc552ad45e683fc780c75a153
crypto: reorg, cleanup and add function for generating CRLs.

This change moves a number of common PKIX structures into
crypto/x509/pkix, from where x509, and ocsp can reference
them, saving duplication. It also removes x509/crl and merges it into
x509 and x509/pkix.

x509 is changed to take advantage of the big.Int support that now
exists in asn1. Because of this, the public/private key pair in
http/httptest/server.go had to be updated because it was serialised
with an old version of the code that didn't zero pad ASN.1 INTEGERs.

R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4532115
12 files changed:
src/pkg/Makefile
src/pkg/crypto/ocsp/ocsp.go
src/pkg/crypto/rsa/rsa.go
src/pkg/crypto/tls/tls.go
src/pkg/crypto/x509/cert_pool.go
src/pkg/crypto/x509/crl/crl.go [deleted file]
src/pkg/crypto/x509/crl/crl_test.go [deleted file]
src/pkg/crypto/x509/pkix/Makefile [moved from src/pkg/crypto/x509/crl/Makefile with 87% similarity]
src/pkg/crypto/x509/pkix/pkix.go [new file with mode: 0644]
src/pkg/crypto/x509/x509.go
src/pkg/crypto/x509/x509_test.go
src/pkg/http/httptest/server.go