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

Name

Description

ssl

Server SSL connection performing NPN.

out

Set to the wire‐format protocol list to advertise.

outlen

Receives the length of *`out.`

arg

User argument from SSL_CTX_set_next_protos_advertised_cb.

Created with MrDocs