RE: pem.h type inconsistencies in 0.9.8g

2008-01-22 Thread Dave Thompson
(Sorry, this got stuck and didn't go out as I thought.) > From: [EMAIL PROTECTED] On Behalf Of Victor Duchovni > Sent: Wednesday, 16 January, 2008 19:30 > On Wed, Jan 16, 2008 at 05:33:13PM -0600, > [EMAIL PROTECTED] wrote: > > > So this is from 0.9.8g's pem.h: > > > > #define PEM_read_SSL_SESS

Re: pem.h type inconsistencies in 0.9.8g

2008-01-17 Thread travis+ml-openssl
On Thu, Jan 17, 2008 at 04:05:07PM -0600, [EMAIL PROTECTED] wrote: > So I guess I'll define a similar acro in my code now, but it'd be nice > if OpenSSL fixed it in the distribution so that I didn't have to work > around it... Ended up doing this: #define READ_SSL_SESSION(fp,x,cb,u) (SSL_SESSIO

Re: pem.h type inconsistencies in 0.9.8g

2008-01-17 Thread travis+ml-openssl
On Wed, Jan 16, 2008 at 07:29:45PM -0500, Victor Duchovni wrote: > No actual problem, in ANSI C pointers can be freely converted between > (type *) and (void *) and back. I'd call it an actual problem when a compilation of my C++ code bombs out because the OpenSSL header files don't compile in my

Re: pem.h type inconsistencies in 0.9.8g

2008-01-16 Thread Victor Duchovni
On Wed, Jan 16, 2008 at 05:33:13PM -0600, [EMAIL PROTECTED] wrote: > So this is from 0.9.8g's pem.h: > > #define PEM_read_SSL_SESSION(fp,x,cb,u) (SSL_SESSION *)PEM_ASN1_read( \ > (char *(*)())d2i_SSL_SESSION,PEM_STRING_SSL_SESSION,fp,(char **)x,cb,u) > > And so is this: > > void * PEM_ASN1_r