Merge pull request #890 from Barenboim/master

fix WFServerBase::ssl_ctx_callback() return type
This commit is contained in:
xiehan
2022-05-06 15:53:27 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ private:
std::atomic<size_t> *conn_count;
};
long WFServerBase::ssl_ctx_callback(SSL *ssl, int *al, void *arg)
int WFServerBase::ssl_ctx_callback(SSL *ssl, int *al, void *arg)
{
WFServerBase *server = (WFServerBase *)arg;
const char *servername = SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name);
+1 -1
View File
@@ -176,7 +176,7 @@ private:
int init(const struct sockaddr *bind_addr, socklen_t addrlen,
const char *cert_file, const char *key_file);
int init_ssl_ctx(const char *cert_file, const char *key_file);
static long ssl_ctx_callback(SSL *ssl, int *al, void *arg);
static int ssl_ctx_callback(SSL *ssl, int *al, void *arg);
virtual int create_listen_fd();
virtual void handle_unbound();