SSL_CTX_set_next_proto_select_cb

Set the Next Protocol Negotiation (NPN) selection callback for clients.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_set_next_proto_select_cb(
    SSL_CTX* s,
    SSL_CTX_npn_select_cb_func cb,
    void* arg);

Parameters

NameDescription
sSSL context used by NPN clients.
cbCallback that chooses a protocol from the server list.
argOpaque pointer passed to cb.