{"thread":{"id":"21398","subject":"[PATCH v3] imap-send.c: fix compiler warnings for OpenSSL 1.0","startedAt":"2009-10-28T08:28:03Z","lastAt":"2009-10-28T08:28:03Z","messageCount":1,"participants":["Vietor Liu"],"isPatch":true,"patchVersion":3,"patchTotal":null},"messages":[{"id":"126114","messageId":"1256718483-4275-1-git-send-email-vietor@vxwo.org","threadId":"21398","inReplyTo":null,"subject":"[PATCH v3] imap-send.c: fix compiler warnings for OpenSSL 1.0","fromName":"Vietor Liu","fromEmail":"vietor@vxwo.org","sentAt":"2009-10-28T08:28:03Z","receivedAt":"2009-10-28T08:28:03Z","isPatch":true,"sender":{"key":"vietor@vxwo.org","avatar":"https://gravatar.com/avatar/5aec20a4fda090db11446ebfef48ef01e702e5cef0710640a676ccbfce1f4fe3?d=mp&s=160"},"body":"Fixes some compiler warnings:\nimap-send.c: In function ‘ssl_socket_connect’:\nwarning: assignment discards qualifiers from pointer target type\n\n====================================================\nOpenSSL Changes between 0.9.8 and 1.0:\n\n*) Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD\n     pointer and make the SSL_METHOD parameter in SSL_CTX_new,\n     SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'.\n\nSigned-off-by: Vietor Liu <vietor@vxwo.org>\n---\n imap-send.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/imap-send.c b/imap-send.c\nindex 3847fd1..298aa80 100644\n--- a/imap-send.c\n+++ b/imap-send.c\n@@ -281,9 +281,9 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve\n \tSSL_load_error_strings();\n \n \tif (use_tls_only)\n-\t\tmeth = TLSv1_method();\n+\t\tmeth = (SSL_METHOD *)TLSv1_method();\n \telse\n-\t\tmeth = SSLv23_method();\n+\t\tmeth = (SSL_METHOD *)SSLv23_method();\n \n \tif (!meth) {\n \t\tssl_socket_perror(\"SSLv23_method\");\n-- \n1.6.5.2\n"}]}