summaryrefslogtreecommitdiff
path: root/security/qca-tls/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'security/qca-tls/patches/patch-ab')
-rw-r--r--security/qca-tls/patches/patch-ab28
1 files changed, 28 insertions, 0 deletions
diff --git a/security/qca-tls/patches/patch-ab b/security/qca-tls/patches/patch-ab
new file mode 100644
index 00000000000..2b53de120ff
--- /dev/null
+++ b/security/qca-tls/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.4 2007/12/20 20:37:27 jdolecek Exp $
+
+--- qca-tls.cpp.orig 2005-12-27 22:22:32.000000000 +0000
++++ qca-tls.cpp
+@@ -454,7 +454,11 @@ public:
+ 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 @@ public:
+
+ 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;