Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Piotr Sikora
November 13, 2013 07:38PM
Hey Valentin,

> I'm very unhappy with lots of #if(def)-s are introduced by the patch.
> Is there something can be done with that?

Added code depends on presence of ALPN support in OpenSSL, so I don't
see how we could get away without all those #ifdefs... I'm open to
suggestions, though :)

> But the SSL_select_next_proto() function is missing if OpenSSL was built
> with OPENSSL_NO_NEXTPROTONEG.

Good catch, I totally forgot about this... I've sent a patch [0] for
this to OpenSSL guys months ago and it was supposed to be fixed before
ALPN was backported to OpenSSL-1.0.2, but I guess it didn't happen.

I'll try to sort this out as soon as possible.

> Maybe I'm wrong since English isn't my native language, but should it be:
>
> "nginx was built without OpenSSL ALPN or NPN " (s/and/or/)
>
> ?

Neither am I, but not really. Double negation makes this tricky, but
"or" would mean that it was built with one but not both, whereas "and"
means that it was built with neither.

> I'm not sure that we need to check NPN if from ALPN we know that some protocol
> was selected and it's not spdy.

Makes sense.

I'll get back to you with updated patch once fix for "no-nextprotoneg"
lands in OpenSSL-1.0.2.

[0] https://rt.openssl.org/Ticket/Display.html?id=3106 (guest:guest)

Best regards,
Piotr Sikora

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] SSL: support ALPN (IETF's successor to NPN)

Piotr Sikora 1611 August 05, 2013 04:54PM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Piotr Sikora 549 November 04, 2013 05:28AM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Valentin V. Bartenev 491 November 05, 2013 12:02PM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Valentin V. Bartenev 410 November 13, 2013 03:18PM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Piotr Sikora 404 November 13, 2013 07:38PM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN) Attachments

Piotr Sikora 404 November 14, 2013 04:26PM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Valentin V. Bartenev 398 January 28, 2014 11:30AM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Piotr Sikora 350 January 28, 2014 06:36PM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Valentin V. Bartenev 338 January 29, 2014 03:30AM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Valentin V. Bartenev 404 January 29, 2014 11:02AM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Alex 421 November 14, 2013 07:30PM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Rob Stradling 710 November 15, 2013 05:26AM

Re: [PATCH] SSL: support ALPN (IETF's successor to NPN)

Piotr Sikora 390 December 13, 2013 05:20PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready