Added slotted app-crypt/qca-1.0 and qca-tls-1.0 ebuilds
[underlay.git] / app-crypt / qca-tls / files / qca-openssl-0.9.8.patch
blob2afb3079f6a7610932dc3479dfabc20faa41fe22
1 --- qca-tls.cpp.orig 2005-12-27 22:22:32.000000000 +0000
2 +++ qca-tls.cpp
3 @@ -454,7 +454,11 @@ public:
4 if(!r) {
5 // try this other public function, for whatever reason
6 p = (void *)in;
7 +#if OPENSSL_VERSION_NUMBER >= 0x00908000
8 + r = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&p, len);
9 +#else
10 r = d2i_RSA_PUBKEY(NULL, (unsigned char **)&p, len);
11 +#endif
13 if(r) {
14 if(pub) {
15 @@ -798,7 +802,11 @@ public:
17 bool createFromDER(const char *in, unsigned int len)
19 +#if OPENSSL_VERSION_NUMBER >= 0x00908000
20 + const unsigned char *p = (const unsigned char *)in;
21 +#else
22 unsigned char *p = (unsigned char *)in;
23 +#endif
24 X509 *t = d2i_X509(NULL, &p, len);
25 if(!t)
26 return false;