Re: [PATCH] imap-send.c: fix pointer to be const
- From
Vietor Liu <vietor@vxwo.org>
- Date
- Oct 28, 2009, 07:05 UTC
- Message-ID
- <1256713526.3333.0.camel@localhost.localdomain>
- In-Reply-To
- <7vk4ygxce6.fsf@alter.siamese.dyndns.org>
On Tue, 2009-10-27 at 23:26 -0700, Junio C Hamano wrote:
Show 14 quoted lines
> Vietor Liu <vietor@vxwo.org> 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@vxwo.org> > > 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.