fixup! Fix compiler warnings using gcc 4.6.

This commit is contained in:
Jan Vidar Krey 2011-12-09 14:21:16 +01:00
parent 8d607dff13
commit fb89307b0a
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */
};