Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1749)

Issue 22237002: NSS: move the first protocol to the end of the ALPN extension. (Closed)

Created:
7 years, 4 months ago by agl
Modified:
7 years, 4 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, Ryan Sleevi
Visibility:
Public.

Description

NSS: move the first protocol to the end of the ALPN extension. NPN defines the first protocol in the client's list to be the protocol that the client will select when there's no overlap - i.e. it's the fallback protocol. However, then the NPN data is used for ALPN, it was becoming the most preferable protocol because ALPN says that they are in preference order. This change causes NSS to be aware that the data that is set by SSL_SetNextProtoNego is in NPN's order and thus the first element should be moved to the end when sending an ALPN extension. BUG=267858 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216503

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing wtc's comments. #

Total comments: 1

Patch Set 3 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -47 lines) Patch
M net/third_party/nss/patches/alpn.patch View 1 2 8 chunks +63 lines, -45 lines 0 comments Download
M net/third_party/nss/ssl/ssl.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M net/third_party/nss/ssl/ssl3ext.c View 1 3 chunks +28 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
agl
7 years, 4 months ago (2013-08-05 17:59:29 UTC) #1
wtc
On 2013/08/05 17:59:29, agl wrote: > NPN defines the first protocol in the client's list ...
7 years, 4 months ago (2013-08-05 22:23:38 UTC) #2
wtc
Patch set 1 LGTM. I wonder if we should clarify this issue in the NPN ...
7 years, 4 months ago (2013-08-05 22:37:35 UTC) #3
agl
Please let me know if the plans for the API are ok with you. https://codereview.chromium.org/22237002/diff/1/net/third_party/nss/ssl/ssl3ext.c ...
7 years, 4 months ago (2013-08-06 17:06:43 UTC) #4
wtc
Patch set 2 LGTM. Your plans for the API are ok with me. Thanks. Is ...
7 years, 4 months ago (2013-08-06 18:08:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agl@chromium.org/22237002/16001
7 years, 4 months ago (2013-08-08 16:03:46 UTC) #6
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 00:16:40 UTC) #7
Message was sent while issue was closed.
Change committed as 216503

Powered by Google App Engine
This is Rietveld 408576698