LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File qca-tls.dif of Package qca (Project KDE:KDE3)

Index: qca-tls.cpp
===================================================================
--- qca-tls.cpp.orig	2010-04-22 10:29:18.000000000 +0200
+++ qca-tls.cpp	2010-04-22 10:30:16.000000000 +0200
@@ -454,7 +454,7 @@ public:
 			if(!r) {
 				// try this other public function, for whatever reason
 				p = (void *)in;
-				r = d2i_RSA_PUBKEY(NULL, (unsigned char **)&p, len);
+				r = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&p, len);
 			}
 			if(r) {
 				if(pub) {
@@ -798,7 +798,7 @@ public:
 
 	bool createFromDER(const char *in, unsigned int len)
 	{
-		unsigned char *p = (unsigned char *)in;
+		const unsigned char *p = (const unsigned char *)in;
 		X509 *t = d2i_X509(NULL, &p, len);
 		if(!t)
 			return false;
@@ -945,6 +945,9 @@ public:
 	RSAKeyContext *key;
 
 	SSL *ssl;
+#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10000000L
+                const
+#endif
 	SSL_METHOD *method;
 	SSL_CTX *context;
 	BIO *rbio, *wbio;