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_SESSION *)PEM_ASN1_read( \
          (void *(*)(void **, const unsigned char **, long 
int))d2i_SSL_SESSION,PEM_STRING_SSL_SESSION,fp,(void **)x,cb,u)

Another problem I had was with d2i_SSL_SESSION needing its second arg
to be a const... apparently C++ is pretty picky about this...  I don't
really understand why, but you no longer can pass a non-const to a
function that needs const.
-- 
<URL:https://www.subspacefield.org/~travis/>
The stream is deaf, yet sings its melody for all to hear.
For a good time on my email blacklist, email [EMAIL PROTECTED]

Attachment: pgpdyip4dvxsA.pgp
Description: PGP signature

Reply via email to