diff -Nurd qca-tls-1.0/qca-tls.cpp qca-tls-1.0/qca-tls.cpp --- qca-tls-1.0/qca-tls.cpp 2003-12-10 11:53:57.000000000 -0500 +++ qca-tls-1.0-new/qca-tls.cpp 2009-09-09 07:59:41.000000000 -0400 @@ -454,7 +454,11 @@ if(!r) { // try this other public function, for whatever reason p = (void *)in; +#ifdef OSSL_097 + r = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&p, len); +#else r = d2i_RSA_PUBKEY(NULL, (unsigned char **)&p, len); +#endif } if(r) { if(pub) { @@ -799,7 +803,11 @@ bool createFromDER(const char *in, unsigned int len) { unsigned char *p = (unsigned char *)in; - X509 *t = d2i_X509(NULL, &p, len); +#ifdef OSSL_097 + X509 *t = d2i_X509(NULL, (const unsigned char**)&p, len); +#else + X509 *t = d2i_X509(NULL, (unsigned char**)&p, len); +#endif if(!t) return false; fromX509(t);