Set the Next Protocol Negotiation (NPN) advertisement callback for servers.
Declared in <openssl/ssl.h>
void
SSL_CTX_set_next_protos_advertised_cb(
SSL_CTX* s,
SSL_CTX_npn_advertised_cb_func cb,
void* arg);
| Name | Description |
|---|---|
| s | SSL context used by NPN servers. |
| cb | Callback that supplies the protocol list to advertise, or NULL to clear. |
| arg | User pointer forwarded to cb. |