Re: How to handle servername indication with openssl library from server

2019-06-19 Thread Skip Carter
if this is a C++ program, be sure to use C linkage for the callback e.g. extern "C" { >     static int ssl_servername_cb(SSL *ssl, int *ad, void *arg) >     { >         if (ssl == NULL) >             return SSL_TLSEXT_ERR_NOACK; >      >         const char* servername = SSL_get_servername(ssl, >

How to handle servername indication with openssl library from server

2019-06-19 Thread DonCorleone via openssl-users
I've develepted some windows server side socket in c and want to add sni server name indication to support sni but servername callback never called and cant get servername is there any suggestion? I've defined some functions for initializing ssl before main function:     void init_openssl()