pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/pwlib Fixed compilation errors with patch-ba and...
details: https://anonhg.NetBSD.org/pkgsrc/rev/eccdb4eab90a
branches: trunk
changeset: 509729:eccdb4eab90a
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Mar 13 22:58:45 2006 +0000
description:
Fixed compilation errors with patch-ba and "old" OpenSSL versions. Can
someone please have a look if the data types are all correct, as I don't
know OpenSSL.
diffstat:
devel/pwlib/distinfo | 4 ++--
devel/pwlib/patches/patch-ba | 25 +++++++++++++------------
2 files changed, 15 insertions(+), 14 deletions(-)
diffs (82 lines):
diff -r f06936a7aec9 -r eccdb4eab90a devel/pwlib/distinfo
--- a/devel/pwlib/distinfo Mon Mar 13 22:53:00 2006 +0000
+++ b/devel/pwlib/distinfo Mon Mar 13 22:58:45 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2006/03/13 21:20:24 joerg Exp $
+$NetBSD: distinfo,v 1.18 2006/03/13 22:58:45 rillig Exp $
SHA1 (pwlib-v1_8_3-src-tar.gz) = d3a6eff571ebfd37889e75cbaef75983e6119d2e
RMD160 (pwlib-v1_8_3-src-tar.gz) = 1ce2544ef631c8344543e62988f97022c998bb05
@@ -26,6 +26,6 @@
SHA1 (patch-au) = 4947ee29e91c84f39a370ebc128c1e67737234d1
SHA1 (patch-av) = 2bb533f6a29f10d357aed1b12c0bfc43af8a4f3b
SHA1 (patch-aw) = 236cb19fc7f0b78055b0634b3821c099318abb9f
-SHA1 (patch-ba) = 3abd3cc7f323e428843c574e9729ae0005bd5fa2
+SHA1 (patch-ba) = ba9538222c5e6fb64c6211c7bda364ef31beeaf4
SHA1 (patch-bb) = 03345fade582539c3b7332f14f1956686ad15289
SHA1 (patch-bd) = 2d2fb1c6772a1e015cc1bceeb27fda39f57f5acc
diff -r f06936a7aec9 -r eccdb4eab90a devel/pwlib/patches/patch-ba
--- a/devel/pwlib/patches/patch-ba Mon Mar 13 22:53:00 2006 +0000
+++ b/devel/pwlib/patches/patch-ba Mon Mar 13 22:58:45 2006 +0000
@@ -1,16 +1,15 @@
-$NetBSD: patch-ba,v 1.4 2006/03/13 21:20:24 joerg Exp $
+$NetBSD: patch-ba,v 1.5 2006/03/13 22:58:45 rillig Exp $
---- src/ptclib/pssl.cxx.orig 2004-10-09 13:31:30.000000000 +0200
-+++ src/ptclib/pssl.cxx 2004-10-09 13:33:39.000000000 +0200
+--- src/ptclib/pssl.cxx.orig 2004-04-09 08:52:17.000000000 +0200
++++ src/ptclib/pssl.cxx 2006-03-13 23:48:01.000000000 +0100
@@ -297,14 +297,22 @@ PSSLPrivateKey::PSSLPrivateKey(const PFi
PSSLPrivateKey::PSSLPrivateKey(const BYTE * keyData, PINDEX keySize)
{
-- key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyData, keySize);
+#if OPENSSL_VERSION_NUMBER >= 0x00908000L
+ key = d2i_AutoPrivateKey(NULL, &keyData, keySize);
+#else
-+ key = d2i_AutoPrivateKey(NULL, (BYE **)&keyData, keySize);
+ key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyData, keySize);
+#endif
}
@@ -21,7 +20,7 @@
const BYTE * keyPtr = keyData;
- key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyPtr, keyData.GetSize());
+#else
-+ BYTE * keyPtr = (BYTE *)keyData;
++ BYTE * keyPtr = (BYTE *)&keyData;
+#endif
+ key = d2i_AutoPrivateKey(NULL, &keyPtr, keyData.GetSize());
}
@@ -42,11 +41,12 @@
PSSLCertificate::PSSLCertificate(const PBYTEArray & certData)
{
-+#if OPENSSL_VERSION_NUMBER >= 0x00908000L
- const BYTE * certPtr = certData;
+- const BYTE * certPtr = certData;
- certificate = d2i_X509(NULL, (unsigned char **)&certPtr, certData.GetSize());
++#if OPENSSL_VERSION_NUMBER >= 0x00908000L
++ const BYTE *certPtr = certData;
+#else
-+ BYTE * certPtr = (BYTE *)certData;
++ BYTE *certPtr = (BYTE *)&certData;
+#endif
+ certificate = d2i_X509(NULL, &certPtr, certData.GetSize());
}
@@ -56,11 +56,12 @@
PBYTEArray certData;
PBase64::Decode(certStr, certData);
if (certData.GetSize() > 0) {
-+#if OPENSSL_VERSION_NUMBER >= 0x00908000L
- const BYTE * certPtr = certData;
+- const BYTE * certPtr = certData;
- certificate = d2i_X509(NULL, (unsigned char **)&certPtr, certData.GetSize());
++#if OPENSSL_VERSION_NUMBER >= 0x00908000L
++ const BYTE *certPtr = certData;
+#else
-+ BYTE * certPtr = (BYTE **)certData;
++ BYTE *certPtr = (BYTE *)&certData;
+#endif
+ certificate = d2i_X509(NULL, &certPtr, certData.GetSize());
}
Home |
Main Index |
Thread Index |
Old Index