From 0c7bd62df214dfd0564f5e6e0767f19e7d4f6bb7 Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Sun, 24 Oct 2010 23:41:36 -0500 Subject: [PATCH] winhttp: Fix const qualifier warning for OpenSSL 1.0.0. --- dlls/winhttp/net.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c index 6727707e05c..7826fbbcc3a 100644 --- a/dlls/winhttp/net.c +++ b/dlls/winhttp/net.c @@ -1073,7 +1073,11 @@ const void *netconn_get_certificate( netconn_t *conn ) int netconn_get_cipher_strength( netconn_t *conn ) { #ifdef SONAME_LIBSSL +#if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x0090707f) + const SSL_CIPHER *cipher; +#else SSL_CIPHER *cipher; +#endif int bits = 0; if (!conn->secure) return 0;