From fb89307b0a54380be16c091ddbc8f6122166aad9 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Fri, 9 Dec 2011 14:21:16 +0100 Subject: [PATCH] fixup! Fix compiler warnings using gcc 4.6. --- src/core/hub.c | 2 +- src/core/hub.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */ };