SSL_CTX_set_next_protos_advertised_cb

Set the Next Protocol Negotiation (NPN) advertisement callback for servers.

Synopsis

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);

Parameters

NameDescription
sSSL context used by NPN servers.
cbCallback that supplies the protocol list to advertise, or NULL to clear.
argUser pointer forwarded to cb.