SSL_CTX_npn_advertised_cb_func

NPN server callback that advertises the server's protocol list.

Synopsis

Declared in <openssl/ssl.h>

typedef int(* SSL_CTX_npn_advertised_cb_func)(SSL*, unsigned char const**, unsigned int*, void*);

Return Value

SSL_TLSEXT_ERR_OK to send the list, or another SSL_TLSEXT_ERR_* code.

Parameters

NameDescription
sslServer SSL connection performing NPN.
outSet to the wire-format protocol list to advertise.
outlenReceives the length of *out.
argUser argument from SSL_CTX_set_next_protos_advertised_cb.