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

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