]> git.pld-linux.org Git - packages/qt-plugin-qca-tls.git/blame - qt-plugin-qca-tls-openssl9x.patch
- proper casts for openssl >= 0.9.7.
[packages/qt-plugin-qca-tls.git] / qt-plugin-qca-tls-openssl9x.patch
CommitLineData
6c5c69a4
PS
1--- qca-tls-1.0/qca-tls.cpp.orig 2003-12-10 17:53:57.000000000 +0100
2+++ qca-tls-1.0/qca-tls.cpp 2006-08-07 10:09:04.138046750 +0200
3@@ -454,7 +454,11 @@
4 if(!r) {
5 // try this other public function, for whatever reason
6 p = (void *)in;
7+#ifdef OSSL_097
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
12 }
13 if(r) {
14 if(pub) {
15@@ -798,7 +802,11 @@
16
17 bool createFromDER(const char *in, unsigned int len)
18 {
19+#ifdef OSSL_097
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;
This page took 0.056072 seconds and 4 git commands to generate.