git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH v3] imap-send.c: fix compiler warnings for OpenSSL 1.0
@ 2009-10-28  8:28 Vietor Liu
  0 siblings, 0 replies; only message in thread
From: Vietor Liu @ 2009-10-28  8:28 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git

Fixes some compiler warnings:
imap-send.c: In function ‘ssl_socket_connect’:
warning: assignment discards qualifiers from pointer target type

====================================================
OpenSSL Changes between 0.9.8 and 1.0:

*) Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD
     pointer and make the SSL_METHOD parameter in SSL_CTX_new,
     SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'.

Signed-off-by: Vietor Liu <vietor@vxwo.org>
---
 imap-send.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/imap-send.c b/imap-send.c
index 3847fd1..298aa80 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -281,9 +281,9 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve
 	SSL_load_error_strings();
 
 	if (use_tls_only)
-		meth = TLSv1_method();
+		meth = (SSL_METHOD *)TLSv1_method();
 	else
-		meth = SSLv23_method();
+		meth = (SSL_METHOD *)SSLv23_method();
 
 	if (!meth) {
 		ssl_socket_perror("SSLv23_method");
-- 
1.6.5.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-28  8:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28  8:28 [PATCH v3] imap-send.c: fix compiler warnings for OpenSSL 1.0 Vietor Liu

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).