diff --git a/src/core/hub.c b/src/core/hub.c index c437135..a9bf895 100644 --- a/src/core/hub.c +++ b/src/core/hub.c @@ -692,7 +692,7 @@ static int load_ssl_certificates(struct hub_info* hub, struct hub_config* config { if (config->tls_enable) { - hub->ssl_method = SSLv23_method(); /* TLSv1_method() */ + hub->ssl_method = (SSL_METHOD*) SSLv23_method(); /* TLSv1_method() */ hub->ssl_ctx = SSL_CTX_new(hub->ssl_method); /* Disable SSLv2 */ diff --git a/src/core/hub.h b/src/core/hub.h index 6bb231e..85288bc 100644 --- a/src/core/hub.h +++ b/src/core/hub.h @@ -121,7 +121,7 @@ struct hub_info #endif #ifdef SSL_SUPPORT - const SSL_METHOD* ssl_method; + SSL_METHOD* ssl_method; SSL_CTX* ssl_ctx; #endif /* SSL_SUPPORT */ };