From c994385048a64adb3ec3e8f5f906c5f8668e1a71 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 6 Jan 2011 19:31:34 +0100 Subject: [PATCH] Fix compiler warning when compiling against OpenSSL 1.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The declaration of SSL_get_current_cipher() has changed to be return a const value. And this makes compilers a little bit grumpy. gcc: ssl.c: In function ‘print_details’: ssl.c:1918: warning: assignment discards qualifiers from pointer target type Visual C: ssl.c (1918): warning C4019: '=' : different 'const' qualifiers Signed-off-by: David Sommerseth Acked-by: Gert Doering (cherry picked from commit 7bd3cea4c2f2aa8ed1bf548a3233ae2c3619d47d) --- ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl.c b/ssl.c index da6f7d70f..ed1071481 100644 --- a/ssl.c +++ b/ssl.c @@ -1909,7 +1909,7 @@ init_ssl (const struct options *options) static void print_details (SSL * c_ssl, const char *prefix) { - SSL_CIPHER *ciph; + const SSL_CIPHER *ciph; X509 *cert; char s1[256]; char s2[256]; -- 2.47.2