the Fink project is an effort to port
popular Unix programs to Mac OS X
Info3: <<
Package: qca2-plugin-ossl-%type_pkg[qca]
Version: 2.0.0-beta3
Revision: 4
Type: qca (x11 mac)
Description: OSSL plugin for QCA2 Crypto API
License: LGPL
Maintainer: Sjors Gielen
Depends: <<
qca2-%type_pkg[qca]-shlibs (>= 2.0.2-1)
<<
BuildDepends: <<
fink (>= 0.28),
system-openssl-dev,
qca2-%type_pkg[qca] (>= 2.0.2-1),
qt4-base-%type_pkg[qca]
<<
GCC: 4.0
Source: http://delta.affinix.com/download/qca/2.0/plugins/qca-ossl-%v.tar.bz2
Source-MD5: bdc62c01321385c7da8d27b3902910ce
PatchFile: qca2-plugin-ossl.patch
PatchFile-MD5: b421aba1a6e320d795b8b09921633bcf
CompileScript: <<
#!/bin/sh -ev
QTDIR="%p/lib/qt4-%type_pkg[qca]"
export PATH="$QTDIR/bin:$PATH"
# Don't use ConfigureParams because --prefix is not supported and Fink
# automatically adds it
./configure --no-separate-debug-info --with-openssl-inc=%p/lib/system-openssl/include \
--with-openssl-lib=%p/lib/system-openssl/lib
make
<<
InstallScript: <<
#!/bin/sh -ev
make install INSTALL_ROOT="%d"
<<
DocFiles: COPYING README TODO
DescDetail: <<
This file provides the OpenSSL plugin for QCA.
This product includes cryptographic software written by Eric Young
(eay@cryptsoft.com)
<<
DescPackaging: <<
Applied a patch to make the package build again with the OpenSSL version of
Fink / 10.6. Source:
http://www.mail-archive.com/kde-freebsd@kde.org/msg03672.html
<<
<<
diff -Nurd qca-ossl-2.0.0-beta3/qca-ossl.cpp qca-ossl-2.0.0-beta3-patched/qca-ossl.cpp
--- qca-ossl-2.0.0-beta3/qca-ossl.cpp 2007-12-11 07:34:57.000000000 +0100
+++ qca-ossl-2.0.0-beta3-patched/qca-ossl.cpp 2011-06-19 14:39:51.000000000 +0200
@@ -327,7 +327,7 @@
X509V3_CTX ctx;
X509V3_set_ctx_nodb(&ctx);
X509V3_set_ctx(&ctx, NULL, cert, NULL, NULL, 0);
- X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash");
+ X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char *)"hash");
return ex;
}
@@ -6597,9 +6597,11 @@
#ifdef SHA512_DIGEST_LENGTH
list += "sha512";
#endif
+/*
#ifdef OBJ_whirlpool
list += "whirlpool";
#endif
+*/
return list;
}
@@ -6810,10 +6812,12 @@
else if ( type == "sha512" )
return new opensslHashContext( EVP_sha512(), this, type);
#endif
+/*
#ifdef OBJ_whirlpool
else if ( type == "whirlpool" )
return new opensslHashContext( EVP_whirlpool(), this, type);
#endif
+*/
else if ( type == "pbkdf1(sha1)" )
return new opensslPbkdf1Context( EVP_sha1(), this, type );
else if ( type == "pbkdf1(md2)" )