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

Issue 9539045: code review 9539045: crypto/tls: don't send NPN extension if NextProtos is n... (Closed)

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

Description

crypto/tls: don't send NPN extension if NextProtos is not set. This isn't clearly a bug on Go's part, but it triggers a bug in Firefox which means that crypto/tls and net/http cannot be wired up together unless NextProtos includes "http/1.1". When net/http sets up the tls.Config, it does this and so works fine. But anyone setting up the tls.Config themselves will hit the Firefox bug. Fixes issue 5445.

Patch Set 1 #

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

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

Total comments: 2

Patch Set 4 : diff -r 4e860d4a312b https://code.google.com/p/go/ #

Patch Set 5 : diff -r b373a884c5fd https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M src/pkg/crypto/tls/handshake_server.go View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 6
agl1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years, 11 months ago (2013-05-20 18:26:24 UTC) #1
bradfitz
LGTM On Mon, May 20, 2013 at 11:26 AM, <agl@golang.org> wrote: > Reviewers: golang-dev1, > ...
10 years, 11 months ago (2013-05-20 18:35:39 UTC) #2
r
https://codereview.appspot.com/9539045/diff/5001/src/pkg/crypto/tls/handshake_server.go File src/pkg/crypto/tls/handshake_server.go (right): https://codereview.appspot.com/9539045/diff/5001/src/pkg/crypto/tls/handshake_server.go#newcode159 src/pkg/crypto/tls/handshake_server.go:159: if hs.clientHello.nextProtoNeg && len(config.NextProtos) > 0 { does this ...
10 years, 11 months ago (2013-05-20 18:42:23 UTC) #3
agl1
https://codereview.appspot.com/9539045/diff/5001/src/pkg/crypto/tls/handshake_server.go File src/pkg/crypto/tls/handshake_server.go (right): https://codereview.appspot.com/9539045/diff/5001/src/pkg/crypto/tls/handshake_server.go#newcode159 src/pkg/crypto/tls/handshake_server.go:159: if hs.clientHello.nextProtoNeg && len(config.NextProtos) > 0 { On 2013/05/20 ...
10 years, 11 months ago (2013-05-20 21:12:02 UTC) #4
r
LGTM
10 years, 11 months ago (2013-05-20 21:32:49 UTC) #5
agl1
10 years, 11 months ago (2013-05-21 14:47:39 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=08896028782c ***

crypto/tls: don't send NPN extension if NextProtos is not set.

This isn't clearly a bug on Go's part, but it triggers a bug in Firefox
which means that crypto/tls and net/http cannot be wired up together
unless NextProtos includes "http/1.1". When net/http sets up the
tls.Config, it does this and so works fine. But anyone setting up the
tls.Config themselves will hit the Firefox bug.

Fixes issue 5445.

R=golang-dev, bradfitz, r
CC=golang-dev
https://codereview.appspot.com/9539045
Sign in to reply to this message.

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