SSL_CTX_set_alpn_select_cb

Register the server callback that selects an ALPN protocol during the handshake.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_set_alpn_select_cb(
    SSL_CTX* ctx,
    SSL_CTX_alpn_select_cb_func cb,
    void* arg);

Parameters

NameDescription
ctxSSL context whose ALPN select callback is set.
cbCallback invoked with the client's offered protocols, or NULL to clear.
argUser pointer passed through to cb as its final argument.