src/ssl_sock.c
static int ssl_sock_advertise_alpn_protos(SSL *s, const unsigned char **data,
                                          unsigned int *len, void *arg)
{
	struct bind_conf *conf = arg;

	*data = (const unsigned char *)conf->alpn_str;
	*len = conf->alpn_len;
	return SSL_TLSEXT_ERR_OK;
}
/* This callback is used so that the server advertises the list of
 * negociable protocols for ALPN.
 */
This callback is used so that the server advertises the list of
negociable protocols for ALPN.
This callback is used so that the server advertises the list of negociable protocols for ALPN .
static int ssl_sock_advertise_alpn_protos(SSL *s, const unsigned char **data,
                                          unsigned int *len, void *arg)
{
	struct bind_conf *conf = arg;
	*data = (const unsigned char *)conf->alpn_str;
	*len = conf->alpn_len;
	return SSL_TLSEXT_ERR_OK;
}
static int ssl_sock_advertise_alpn_protos ( SSL * s , const unsigned char * * data , unsigned int * len , void * arg ) { struct bind_conf * conf = arg ; * data = ( const unsigned char * ) conf -> alpn_str ; * len = conf -> alpn_len ; return SSL_TLSEXT_ERR_OK ; }
This callback is used so that the server advertises the list of
 negociable protocols for ALPN.
This callback is used so that the server advertises the list of negociable protocols for ALPN .