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

Issue 7277051: code review 7277051: crypto/x509: reject IP address in VerifyHostname (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rsc
Modified:
11 years, 2 months ago
CC:
golang-dev
Visibility:
Public.

Description

crypto/x509: reject IP address in VerifyHostname New dependency: x509 depends on net for checking whether the host name is in the form of a valid IP address. Since the primary client of x509 is crypto/tls, and the latter already depends on net, no big change. Fixes issue 4658.

Patch Set 1 #

Patch Set 2 : diff -r 6919c7058a43 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 6919c7058a43 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M src/pkg/crypto/x509/verify.go View 1 2 chunks +8 lines, -0 lines 0 comments Download
M src/pkg/crypto/x509/x509_test.go View 1 1 chunk +27 lines, -0 lines 0 comments Download
M src/pkg/go/build/deps_test.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20
rsc
Hello agl1 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 2 months ago (2013-02-04 05:08:39 UTC) #1
bradfitz
LGTM On Sun, Feb 3, 2013 at 9:08 PM, <rsc@golang.org> wrote: > Reviewers: agl1, > ...
11 years, 2 months ago (2013-02-04 05:12:39 UTC) #2
rsc
Too bad this breaks net/http's tests: --- FAIL: TestClientWithCorrectTLSServerName (0.02 seconds) client_test.go:625: expected successful TLS ...
11 years, 2 months ago (2013-02-04 05:18:39 UTC) #3
bradfitz
The net/http/httptest certificate IIRC has a subject of "127.0.0.1". I thought this bug was only ...
11 years, 2 months ago (2013-02-04 05:21:35 UTC) #4
agl1
This change is probably the right thing to do - although perhaps we should add ...
11 years, 2 months ago (2013-02-04 20:17:44 UTC) #5
bradfitz
On Mon, Feb 4, 2013 at 12:17 PM, <agl@golang.org> wrote: > This change is probably ...
11 years, 2 months ago (2013-02-04 20:46:25 UTC) #6
mikio
I'm a bit confused. Are you guys talking about: Subject Alternative Names for SSL or ...
11 years, 2 months ago (2013-02-04 23:40:44 UTC) #7
agl1
On Mon, Feb 4, 2013 at 6:40 PM, <mikioh.mikioh@gmail.com> wrote: > I'm a bit confused. ...
11 years, 2 months ago (2013-02-04 23:42:47 UTC) #8
rsc
It's all yours if you have time. Thanks. Russ
11 years, 2 months ago (2013-02-05 01:36:07 UTC) #9
agl1
On second thoughts, I like this change and think it should be submitted as is. ...
11 years, 2 months ago (2013-02-11 19:42:11 UTC) #10
bradfitz
It can't be submitted as-is, as it breaks the net/http tests, since net/http/httptest relies on ...
11 years, 2 months ago (2013-02-11 19:44:07 UTC) #11
agl1
On Mon, Feb 11, 2013 at 2:44 PM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > It can't ...
11 years, 2 months ago (2013-02-11 20:29:56 UTC) #12
bradfitz
On Mon, Feb 11, 2013 at 12:29 PM, Adam Langley <agl@golang.org> wrote: > On Mon, ...
11 years, 2 months ago (2013-02-11 20:32:20 UTC) #13
bradfitz
On Mon, Feb 11, 2013 at 12:32 PM, Brad Fitzpatrick <bradfitz@golang.org>wrote: > > > On ...
11 years, 2 months ago (2013-02-12 01:49:14 UTC) #14
richmoore44
I'd suggest you take the approach of allowing IP addresses in DNS subject alternative names, ...
11 years, 2 months ago (2013-02-12 17:26:21 UTC) #15
bradfitz
That's what I thought "we" were going to do too, but agl changed his mind. ...
11 years, 2 months ago (2013-02-12 17:47:35 UTC) #16
agl1
On Tue, Feb 12, 2013 at 12:47 PM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > That's what ...
11 years, 2 months ago (2013-02-12 19:04:01 UTC) #17
mikio
On 2013/02/12 19:04:01, agl1 wrote: > In light of that, supporting IP SANs seems like ...
11 years, 2 months ago (2013-02-12 23:56:29 UTC) #18
bradfitz
This can be closed now.
11 years, 2 months ago (2013-02-24 19:04:29 UTC) #19
rsc
11 years, 2 months ago (2013-02-25 22:01:27 UTC) #20
Message was sent while issue was closed.
Discarded by hand.
Sign in to reply to this message.

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