Re: OpenSSL and Bug #1716

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sun, 27 Aug 2006 00:12:24 +0200

lör 2006-08-26 klockan 17:58 +0200 skrev Guido Serassio:

> For testing, I have replaced PEM_ASN1_write() call with the
> PEM_write_SSL_SESSION() macro, and this seems to fix all the errors
> that I have listed in bug #1716.
>
> What is the history of this comment ?

It depends on the version of OpenSSL I think. And maybe GCC warning
flags...

Which version of OpenSSL are you using?

If I do this here then I get the following errors:

squid-2.6/src/client_side.c: In function 'clientNegotiateSSL':
squid-2.6/src/client_side.c:4616: warning: function declaration isn't a prototype

squid-3/src/client_side.cc: In function 'void clientNegotiateSSL(int, void*)':
squid-3/src/client_side.cc:2933: error: invalid conversion from 'int (*)()' to 'int (*)(void*, unsigned char**)'
squid-3/src/client_side.cc:2933: error: initializing argument 1 of 'int PEM_ASN1_write(int (*)(void*, unsigned char**), const char*, FILE*, char*, const EVP_CIPHER*, unsigned char*, int, int (*)(char*, int, int, void*), void*)'

Fedora Core 5 Linux on x86_64
OpenSSL 0.9.8a-5.2
gcc-4.1.1-1.fc5

Regards
Henrik

Received on Sat Aug 26 2006 - 16:12:29 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:03 MDT