From cee842a82926d6e6295736b76be968806649beee Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 15 Jan 2014 22:09:57 +0100 Subject: [PATCH] openssl: Fix compiler warning. --- libratbox/src/openssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libratbox/src/openssl.c b/libratbox/src/openssl.c index c84c7a8a..86dfe6cd 100644 --- a/libratbox/src/openssl.c +++ b/libratbox/src/openssl.c @@ -314,7 +314,8 @@ rb_init_ssl(void) /* Disable SSLv2, make the client use our settings */ SSL_CTX_set_options(ssl_server_ctx, SSL_OP_NO_SSLv2 | SSL_OP_CIPHER_SERVER_PREFERENCE); SSL_CTX_set_verify(ssl_server_ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, verify_accept_all_cb); - SSL_CTX_set_session_id_context(ssl_server_ctx, "libratbox", 9); + SSL_CTX_set_session_id_context(ssl_server_ctx, + (const unsigned char *)"libratbox", 9); /* Set ECDHE on OpenSSL 1.00+, but make sure it's actually available because redhat are dicks and bastardise their OpenSSL for stupid reasons... */