qca stable port information

Package: qca
Version: 1.0
Revision: 1023
Distribution: 10.4, 10.5
Depends: %N-shlibs
BuildDepends: cyrus-sasl2-dev, system-openssl-dev, qt3 (>= 3.3.5-1023)
BuildDependsOnly: true

Source: http://delta.affinix.com/qca/qca-%v.tar.bz2
Source-MD5: ee44022eb0e5b8b5df64c62630f6e6b6
Source2: http://delta.affinix.com/qca/qca-tls-%v.tar.bz2
Source2-MD5: 886b1f60fc31de3b1a0bd93281e27b73
Source3: http://delta.affinix.com/qca/qca-sasl-%v.tar.bz2
Source3-MD5: 2e324cb45706f37a8d2b196f43428023
GCC: 4.0

CompileScript: <<
#!/bin/sh -ex

export lt_cv_sys_max_cmd_len=65536
./configure --prefix=%p --qtdir=%p
make

pushd ../qca-sasl-%v
./configure --with-sasl-inc=%p/include --with-sasl-lib=%p/lib --qtdir=%p
make
popd

pushd ../qca-tls-%v
./configure --qtdir=%p --with-openssl-inc=%p/lib/system-openssl/include --with-openssl-lib=%p/lib/system-openssl/lib
make LIBS='-L%p/lib/system-openssl/lib -lssl -lcrypto -L%p/lib -lqt-mt $(SUBLIBS)'
popd
<<
InstallScript: <<
#!/bin/sh -ex

install -d -m 755 %i/include/qt
install -d -m 755 %i/lib
install -d %i/lib/qt3-plugins/crypto
install -d -m 755 %i/share/doc/%N/

mv *.dylib %i/lib/
mv src/*.h %i/include/qt/
cp -pR examples %i/share/doc/%N/

install -c -m 755 ../qca-*-%v/*.so %i/lib/qt3-plugins/crypto/
<<
SplitOff: <<
Package: %N-shlibs
Depends: cyrus-sasl2-shlibs, qt3-shlibs (>= 3.3.5-1023)
Files: <<
lib/libqca.*.dylib
lib/qt3-plugins
<<
Shlibs: %p/lib/libqca.1.dylib 1.0.0 %n (>= 1.0-1)
DocFiles: COPYING*
<<
DocFiles: COPYING INSTALL README TODO
Description: Qt Cryptographic Architecture
DescDetail: <<
Taking a hint from the similarly-named Java Cryptography Architecture,
QCA aims to provide a straightforward and cross-platform crypto API,
using Qt datatypes and conventions. QCA separates the API from the
implementation, using plugins known as Providers. The advantage of
this model is to allow applications to avoid linking to or explicitly
depending on any particular cryptographic library. This allows one to
easily change or upgrade crypto implementations without even needing
to recompile the application!
<<
License: LGPL
Maintainer: Benjamin Reed
Homepage: http://delta.affinix.com/qca/

qca stable port .patch

diff -Nurd qca-tls-1.0/qca-tls.cpp qca-tls-1.0/qca-tls.cpp
--- qca-tls-1.0/qca-tls.cpp 2003-12-10 11:53:57.000000000 -0500
+++ qca-tls-1.0-new/qca-tls.cpp 2009-09-09 07:59:41.000000000 -0400
@@ -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) {
@@ -799,7 +803,11 @@
bool createFromDER(const char *in, unsigned int len)
{
unsigned char *p = (unsigned char *)in;
- X509 *t = d2i_X509(NULL, &p, len);
+#ifdef OSSL_097
+ X509 *t = d2i_X509(NULL, (const unsigned char**)&p, len);
+#else
+ X509 *t = d2i_X509(NULL, (unsigned char**)&p, len);
+#endif
if(!t)
return false;
fromX509(t);

qca _unstable_ port .patch