summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/tqca-tls/qca-tls-1.0-ossl098.patch
blob: edfb376e04254e9cb83ed2c3d00ab54272747d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- ./qca-tls.cpp.ossl098	2003-12-10 17:53:57.000000000 +0100
+++ ./qca-tls.cpp	2005-11-13 22:21:50.000000000 +0100
@@ -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) {
@@ -798,7 +802,11 @@
 
 	bool createFromDER(const char *in, unsigned int len)
 	{
+#ifdef OSSL_097
+		const unsigned char *p = (const unsigned char *)in;
+#else
 		unsigned char *p = (unsigned char *)in;
+#endif
 		X509 *t = d2i_X509(NULL, &p, len);
 		if(!t)
 			return false;