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

Issue 5692003: Allow NPN enable on a per-SSL connection basis... (Closed)

Created:
10 years ago by joth
Modified:
9 years, 6 months ago
Reviewers:
agl
CC:
chromium-reviews, Kristian_
Visibility:
Public.

Description

Allow NPN enable on a per-SSL connection basis Also moves the NPN / snap start function declerations under OPENSSL_NO_TLSEXT guard (to match their definitions) This is needed for http://codereview.chromium.org/5728001/

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -5 lines) Patch
M openssl/ssl/ssl.h View 3 chunks +11 lines, -0 lines 0 comments Download
M openssl/ssl/ssl_lib.c View 3 chunks +21 lines, -2 lines 0 comments Download
M openssl/ssl/t1_lib.c View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
joth
agl, what's the best way to go about patches to openssl's npn code. Do them ...
10 years ago (2010-12-09 18:48:15 UTC) #1
agl
Before reviewing the code, I want to understand the motivation. The callback gets an SSL* ...
10 years ago (2010-12-09 18:56:35 UTC) #2
joth
On 9 December 2010 18:56, <agl@chromium.org> wrote: > Before reviewing the code, I want to ...
10 years ago (2010-12-09 19:31:53 UTC) #3
agl
10 years ago (2010-12-09 19:34:50 UTC) #4
On Thu, Dec 9, 2010 at 2:31 PM, Jonathan Dixon <joth@chromium.org> wrote:
> It fixes a todo in http://codereview.chromium.org/5728001/ about avoiding
> getting the callback on sockets that don't want to use NPN.
> AIUI calling SSL_CTX_set_next_proto_select_cb means *all* client connections
> on that CTX will send the NPN request, and we're oblidged to reply with a
> protocol choice when the callback arrives, even if that specific SSL did not
> want to use NPN. Rather than take the pot-luck guess that http/1.1 is the
> appropriate choice, this allows us to enable NPN only on those SSLs that
> need it. (I understand that in current usage chrome will either always or
> never request npn, but wanted to future proof it in case this policy
> decision changes)
> Lemme know if I'm worrying about an impossible situation.

We should always enable NPN and negotiate with "http/1.1" if that's
what we're doing. I don't think the extension should appear and
disappear.


AGL

Powered by Google App Engine
This is Rietveld 408576698