[Frugalware-git] frugalware-current: qca-ossl-2.0.0_beta3-1-x86_64 * new package * replaces qca-tls

James Buren ryuo at frugalware.org
Mon Feb 20 23:46:32 CET 2012


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b26bac8810285bb62bfa33754f2934f7a8439965

commit b26bac8810285bb62bfa33754f2934f7a8439965
Author: James Buren <ryuo at frugalware.org>
Date:   Mon Feb 20 16:46:40 2012 -0600

qca-ossl-2.0.0_beta3-1-x86_64
* new package
* replaces qca-tls

diff --git a/source/xlib/qca-ossl/FrugalBuild b/source/xlib/qca-ossl/FrugalBuild
new file mode 100644
index 0000000..b5e2733
--- /dev/null
+++ b/source/xlib/qca-ossl/FrugalBuild
@@ -0,0 +1,26 @@
+# Compiling Time: 0 SBU
+# Maintainer: James Buren <ryuo at frugalware.org>
+
+pkgname=qca-ossl
+pkgver=2.0.0_beta3
+pkgrel=1
+pkgdesc="Plugins for qca providing TLS, CMS, X.509, RSA, DSA, Diffie-Hellman, PKCS#7, PKCS#12, SHA0, SHA1, SHA224, SHA256, SHA384, SHA512, MD4, MD5, RIPEMD160, Blowfish, DES, 3DES, AES128, AES192, AES256, CAST5, HMAC(SHA1, MD5, RIPEMD160), PBKDF1(MD2, SHA1), PBKDF2(SHA1)."
+url="http://delta.affinix.com/qca"
+depends=('qca')
+groups=('xlib')
+archs=('i686' 'x86_64')
+up2date="Fwcat $url | sed -rn 's|.*$pkgname-(.*)\.tar\.bz2.*|\1|p' | tr '-' '_'"
+source=(http://delta.affinix.com/download/qca/2.0/plugins/$pkgname-${pkgver/_/-}.tar.bz2 $pkgname-md2.patch)
+sha1sums=('dd925e8732ff76f24f9f90f4094abaf2f0ac27bf' \
+          '04382258afc731bdb07dfbe0b3d01cda6018e002')
+_F_cd_path="$pkgname-${pkgver/_/-}"
+replaces=('qca-tls')
+
+build()
+{
+	Fpatchall
+	Fmake
+	Fmakeinstall INSTALL_ROOT=$Fdestdir
+}
+
+# optimization OK
diff --git a/source/xlib/qca-ossl/qca-ossl-md2.patch b/source/xlib/qca-ossl/qca-ossl-md2.patch
new file mode 100644
index 0000000..23e0e2b
--- /dev/null
+++ b/source/xlib/qca-ossl/qca-ossl-md2.patch
@@ -0,0 +1,103 @@
+diff -ur a/qca-ossl.cpp b/qca-ossl.cpp
+--- a/qca-ossl.cpp	2007-12-11 00:34:57.000000000 -0600
++++ b/qca-ossl.cpp	2012-02-20 16:41:07.652495314 -0600
+@@ -1771,8 +1771,10 @@
+ 			md = EVP_sha1();
+ 		else if(alg == EMSA3_MD5)
+ 			md = EVP_md5();
++#ifndef OPENSSL_NO_MD2
+ 		else if(alg == EMSA3_MD2)
+ 			md = EVP_md2();
++#endif
+ 		else if(alg == EMSA3_RIPEMD160)
+ 			md = EVP_ripemd160();
+ 		else if(alg == EMSA3_Raw)
+@@ -1789,8 +1791,10 @@
+ 			md = EVP_sha1();
+ 		else if(alg == EMSA3_MD5)
+ 			md = EVP_md5();
++#ifndef OPENSSL_NO_MD2
+ 		else if(alg == EMSA3_MD2)
+ 			md = EVP_md2();
++#endif
+ 		else if(alg == EMSA3_RIPEMD160)
+ 			md = EVP_ripemd160();
+ 		else if(alg == EMSA3_Raw)
+@@ -3385,9 +3389,11 @@
+ 		case NID_md5WithRSAEncryption:
+ 		    p.sigalgo = QCA::EMSA3_MD5;
+ 		    break;
++#ifndef OPENSSL_NO_MD2
+ 		case NID_md2WithRSAEncryption:
+ 		    p.sigalgo = QCA::EMSA3_MD2;
+ 		    break;
++#endif
+ 		case NID_ripemd160WithRSA:
+ 		    p.sigalgo = QCA::EMSA3_RIPEMD160;
+ 		    break;
+@@ -3871,9 +3877,11 @@
+ 		case NID_md5WithRSAEncryption:
+ 		    p.sigalgo = QCA::EMSA3_MD5;
+ 		    break;
++#ifndef OPENSSL_NO_MD2
+ 		case NID_md2WithRSAEncryption:
+ 		    p.sigalgo = QCA::EMSA3_MD2;
+ 		    break;
++#endif
+ 		case NID_ripemd160WithRSA:
+ 		    p.sigalgo = QCA::EMSA3_RIPEMD160;
+ 		    break;
+@@ -4061,9 +4069,11 @@
+ 		case NID_md5WithRSAEncryption:
+ 		    p.sigalgo = QCA::EMSA3_MD5;
+ 		    break;
++#ifndef OPENSSL_NO_MD2
+ 		case NID_md2WithRSAEncryption:
+ 		    p.sigalgo = QCA::EMSA3_MD2;
+ 		    break;
++#endif
+ 		case NID_ripemd160WithRSA:
+ 		    p.sigalgo = QCA::EMSA3_RIPEMD160;
+ 		    break;
+@@ -6582,7 +6592,9 @@
+ 	list += "sha1";
+ 	list += "sha0";
+ 	list += "ripemd160";
++#ifndef OPENSSL_NO_MD2
+ 	list += "md2";
++#endif
+ 	list += "md4";
+ 	list += "md5";
+ #ifdef SHA224_DIGEST_LENGTH
+@@ -6757,7 +6769,9 @@
+ 		list += all_hash_types();
+ 		list += all_mac_types();
+ 		list += all_cipher_types();
++#ifndef OPENSSL_NO_MD2
+ 		list += "pbkdf1(md2)";
++#endif
+ 		list += "pbkdf1(sha1)";
+ 		list += "pbkdf2(sha1)";
+ 		list += "pkey";
+@@ -6788,8 +6802,10 @@
+ 			return new opensslHashContext( EVP_sha(), this, type);
+ 		else if ( type == "ripemd160" )
+ 			return new opensslHashContext( EVP_ripemd160(), this, type);
++#ifndef OPENSSL_NO_MD2
+ 		else if ( type == "md2" )
+ 			return new opensslHashContext( EVP_md2(), this, type);
++#endif
+ 		else if ( type == "md4" )
+ 			return new opensslHashContext( EVP_md4(), this, type);
+ 		else if ( type == "md5" )
+@@ -6816,8 +6832,10 @@
+ #endif
+ 		else if ( type == "pbkdf1(sha1)" )
+ 			return new opensslPbkdf1Context( EVP_sha1(), this, type );
++#ifndef OPENSSL_NO_MD2
+ 		else if ( type == "pbkdf1(md2)" )
+ 			return new opensslPbkdf1Context( EVP_md2(), this, type );
++#endif
+ 		else if ( type == "pbkdf2(sha1)" )
+ 			return new opensslPbkdf2Context( this, type );
+ 		else if ( type == "hmac(md5)" )


More information about the Frugalware-git mailing list