Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(491)

Issue 4532115: code review 4532115: crypto: reorg, cleanup and add function for generating CRLs. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by agl1
Modified:
13 years, 9 months ago
Reviewers:
CC:
bradfitz, rsc, golang-dev
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r 95448425041c https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 95448425041c https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 95448425041c https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 95448425041c https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 95448425041c https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 95448425041c https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 8 : diff -r 65e1a4cd6869 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -430 lines) Patch
M src/pkg/Makefile View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M src/pkg/crypto/ocsp/ocsp.go View 1 3 chunks +6 lines, -17 lines 0 comments Download
M src/pkg/crypto/rsa/rsa.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/tls/tls.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/x509/cert_pool.go View 1 2 chunks +2 lines, -1 line 0 comments Download
R src/pkg/crypto/x509/crl/Makefile View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
R src/pkg/crypto/x509/crl/crl.go View 1 2 3 4 5 1 chunk +0 lines, -96 lines 0 comments Download
R src/pkg/crypto/x509/crl/crl_test.go View 1 2 3 4 1 chunk +0 lines, -63 lines 0 comments Download
A src/pkg/crypto/x509/pkix/Makefile View 1 1 chunk +11 lines, -0 lines 0 comments Download
A src/pkg/crypto/x509/pkix/pkix.go View 1 2 3 4 5 6 1 chunk +167 lines, -0 lines 0 comments Download
M src/pkg/crypto/x509/x509.go View 1 2 3 4 5 6 18 chunks +143 lines, -218 lines 0 comments Download
M src/pkg/crypto/x509/x509_test.go View 1 2 3 4 3 chunks +100 lines, -2 lines 0 comments Download
M src/pkg/http/httptest/server.go View 1 1 chunk +14 lines, -19 lines 0 comments Download

Messages

Total messages: 5
agl1
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-06-03 20:13:00 UTC) #1
rsc
Should crl be merged into pkix?
13 years, 9 months ago (2011-06-03 20:18:50 UTC) #2
agl1
On Fri, Jun 3, 2011 at 4:18 PM, Russ Cox <rsc@golang.org> wrote: > Should crl ...
13 years, 9 months ago (2011-06-03 20:47:53 UTC) #3
bradfitz
LGTM Just skimmed it though. Not a super thorough review. http://codereview.appspot.com/4532115/diff/14001/src/pkg/crypto/x509/x509_test.go File src/pkg/crypto/x509/x509_test.go (right): http://codereview.appspot.com/4532115/diff/14001/src/pkg/crypto/x509/x509_test.go#newcode380 ...
13 years, 9 months ago (2011-06-03 20:57:10 UTC) #4
agl1
13 years, 9 months ago (2011-06-06 14:35:57 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=7164c59c6857 ***

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
http://codereview.appspot.com/4532115
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b