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

Issue 5441052: code review 5441052: crypto/tls: cleanup certificate load on windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by brainman
Modified:
12 years, 5 months ago
Reviewers:
CC:
hector, agl1, rsc, golang-dev, mkrautz
Visibility:
Public.

Description

crypto/tls: cleanup certificate load on windows - correct syscall.CertEnumCertificatesInStore so it returns error - remove "reflect" dependency

Patch Set 1 #

Patch Set 2 : diff -r 3b4b41ee8b30 https://go.googlecode.com/hg/ #

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

Total comments: 2

Patch Set 4 : diff -r 3b4b41ee8b30 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -23 lines) Patch
M src/pkg/crypto/tls/root_windows.go View 1 2 3 2 chunks +10 lines, -17 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 1 chunk +9 lines, -2 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_amd64.go View 1 1 chunk +9 lines, -2 lines 0 comments Download
M src/pkg/syscall/ztypes_windows.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
brainman
Hello golang-dev@googlegroups.com (cc: krautz@gmail.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2011-11-29 05:31:31 UTC) #1
hector
Please review http://codereview.appspot.com/5263045/ before making this change. The code originally parsed the certificate without copying ...
12 years, 5 months ago (2011-11-29 09:38:59 UTC) #2
agl1
http://codereview.appspot.com/5441052/diff/3001/src/pkg/crypto/tls/root_windows.go File src/pkg/crypto/tls/root_windows.go (right): http://codereview.appspot.com/5441052/diff/3001/src/pkg/crypto/tls/root_windows.go#newcode28 src/pkg/crypto/tls/root_windows.go:28: if c, err := x509.ParseCertificate(buf); err == nil { ...
12 years, 5 months ago (2011-11-29 14:25:45 UTC) #3
brainman
http://codereview.appspot.com/5441052/diff/3001/src/pkg/crypto/tls/root_windows.go File src/pkg/crypto/tls/root_windows.go (right): http://codereview.appspot.com/5441052/diff/3001/src/pkg/crypto/tls/root_windows.go#newcode28 src/pkg/crypto/tls/root_windows.go:28: if c, err := x509.ParseCertificate(buf); err == nil { ...
12 years, 5 months ago (2011-11-30 00:57:17 UTC) #4
brainman
Hello golang-dev@googlegroups.com, hectorchu@gmail.com, agl@golang.org (cc: golang-dev@googlegroups.com, krautz@gmail.com), Please take another look.
12 years, 5 months ago (2011-11-30 00:57:33 UTC) #5
rsc
LGTM I agree that the x509.ParseCertificate behavior is surprising.
12 years, 5 months ago (2011-11-30 20:16:25 UTC) #6
agl1
12 years, 5 months ago (2011-12-01 17:38:33 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=64b4ccd66aae ***

crypto/tls: cleanup certificate load on windows

- correct syscall.CertEnumCertificatesInStore so it returns error
- remove "reflect" dependency

R=hectorchu, agl, rsc
CC=golang-dev, krautz
http://codereview.appspot.com/5441052

Committer: Adam Langley <agl@golang.org>
Sign in to reply to this message.

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