Set the ALPN protocol list advertised or offered by an SSL context.
Declared in <openssl/ssl.h>
int
SSL_CTX_set_alpn_protos(
SSL_CTX* ctx,
unsigned char const* protos,
unsigned int protos_len);
0 on success, or non-zero on failure (inverted success convention).
| Name | Description |
|---|---|
| ctx | SSL context to configure. |
| protos | Wire-format protocol list (length-prefixed names); empty clears ALPN. |
| protos_len | Length of protos in bytes. |