On Tue, 2009-10-27 at 23:26 -0700, Junio C Hamano wrote: > Vietor Liu <vietor@xxxxxxxx> writes: > > > Fixes some compiler warnings: > > imap-send.c: In function ‘ssl_socket_connect’: > > warning: assignment discards qualifiers from pointer target type > > > > Signed-off-by: Vietor Liu <vietor@xxxxxxxx> > > I do not quite understand. This variable gets assigned the return values > from TLSv1_method() or SSLv23_method(), but the copy of ssl.h I have > declares them as: > > SSL_METHOD *SSLv23_method(void); /* SSLv3 but can rollback to v2 */ > SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */ 1. openssl-devel-1.0.0-0.10 const SSL_METHOD *SSLv23_method(void); /* SSLv3 but can rollback to v2 */ const SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */ 2. http://www.openssl.org/docs/ssl/ssl.html const SSL_METHOD *SSLv2_method(void); Constructor for the SSLv2 SSL_METHOD structure for combined client and server. const SSL_METHOD *TLSv1_method(void); Constructor for the TLSv1 SSL_METHOD structure for combined client and server. 3. it maybe fixes warnings for other version. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html