📜  ssl_get_servername return null - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.636000             🧑  作者: Mango

代码示例1
#include 

 long SSL_CTX_set_tlsext_servername_callback(SSL_CTX *ctx,
                                   int (*cb)(SSL *, int *, void *));
 long SSL_CTX_set_tlsext_servername_arg(SSL_CTX *ctx, void *arg);

 const char *SSL_get_servername(const SSL *s, const int type);
 int SSL_get_servername_type(const SSL *s);