Register the server callback that selects an ALPN protocol during the handshake.
Declared in <openssl/ssl.h>
void
SSL_CTX_set_alpn_select_cb(
SSL_CTX* ctx,
SSL_CTX_alpn_select_cb_func cb,
void* arg);
| Name | Description |
|---|---|
| ctx | SSL context whose ALPN select callback is set. |
| cb | Callback invoked with the client's offered protocols, or NULL to clear. |
| arg | User pointer passed through to cb as its final argument. |