Use ALPN for protocol negotiation over TLS

Bug #1818825 reported by Denis Smirnov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AirDC++
New
Undecided
Unassigned
DC++
New
Undecided
Unassigned

Bug Description

As discussed on DCNF meeting, the ALPN proposal is at final stages:
https://github.com/direct-connect/protocol/pull/1
It may be time to add the prototype implementation to the DC++ client.

The example can be found in cURL source:
https://github.com/curl/curl/blob/master/lib/vtls/openssl.c
(see mentions of tls_enable_alpn flag).

The function to set supported protocols for a TLS context is SSL_CTX_set_alpn_protos.

Revision history for this message
Denis Smirnov (dennwc) wrote :

First part of the change for Flylink:
https://github.com/pavel-pimenov/flylinkdc-r5xx/pull/1720

Revision history for this message
Denis Smirnov (dennwc) wrote :

Proposed patch for advertising a list of supported protocols:
https://gist.github.com/dennwc/de336c848695232aab72c06b943349ab

Revision history for this message
Denis Smirnov (dennwc) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.