1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Implement ALPN client-side

This commit is contained in:
Manuel Pégourié-Gonnard
2014-04-07 10:57:45 +02:00
parent 1bd2281260
commit 0b874dc580
3 changed files with 136 additions and 2 deletions

View File

@ -348,6 +348,8 @@
#define TLS_EXT_SIG_ALG 13
#define TLS_EXT_ALPN 16
#define TLS_EXT_SESSION_TICKET 35
#define TLS_EXT_RENEGOTIATION_INFO 0xFF01
@ -1247,8 +1249,10 @@ void ssl_set_sni( ssl_context *ssl,
* \param ssl SSL context
* \param protos NULL-terminated list of supported protocols,
* in decreasing preference order.
*
* \return 0 on success, or POLARSSL_ERR_SSL_BAD_INPUT_DATA.
*/
void ssl_set_alpn_protocols( ssl_context *ssl, const char **protos );
int ssl_set_alpn_protocols( ssl_context *ssl, const char **protos );
/**
* \brief Get the name of the negotiated Application Layer Protocol.