From 5a4918e6351e8e1848370752b56d25c5f5e5cb2a Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 6 Jun 2011 10:35:46 -0400 Subject: [PATCH] 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 --- tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tls.go b/tls.go index 7d0bb9f..9e5c927 100644 --- a/tls.go +++ b/tls.go @@ -159,7 +159,7 @@ func X509KeyPair(certPEMBlock, keyPEMBlock []byte) (cert Certificate, err os.Err key, err := x509.ParsePKCS1PrivateKey(keyDERBlock.Bytes) if err != nil { - err = os.ErrorString("crypto/tls: failed to parse key") + err = os.ErrorString("crypto/tls: failed to parse key: " + err.String()) return }