On 07/23/2010 10:53 AM, Uwe Bonnes wrote:
Hello,
on my Suse 11.3, /usr/include/ssl/ssl.h defines const SSL_METHOD *method; as does http://www.openssl.org/docs/ssl/ssl.html and so in ../dlls/winhttp/net.c and ../dlls/wininet/netconnection.c
static SSL_METHOD *method; is flagges as an warning.
My patch exchanged -static SSL_METHOD *method; +static const SSL_METHOD *method;
but http://source.winehq.org/patches/ flags 63746 Build failure Uwe Bonnes Add-missing-const-qualifier.patc
Can anybody give more information?
Haven't checked the code, but these are the extra warnings I get for winhttp:
../../../wine-git/dlls/winhttp/net.c: In function ‘netconn_init’: ../../../wine-git/dlls/winhttp/net.c:479: warning: passing argument 1 of ‘pSSL_CTX_new’ discards qualifiers from pointer target type ../../../wine-git/dlls/winhttp/net.c:479: note: expected ‘struct SSL_METHOD *’ but argument is of type ‘const struct SSL_METHOD *’