SF.net SVN: gar:[26447] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sat Jul 21 14:34:30 CEST 2018


Revision: 26447
          http://sourceforge.net/p/gar/code/26447
Author:   dmichelsen
Date:     2018-07-21 12:34:27 +0000 (Sat, 21 Jul 2018)
Log Message:
-----------
cryptopp: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/cryptopp/
    csw/mgar/pkg/cryptopp/branches/
    csw/mgar/pkg/cryptopp/tags/
    csw/mgar/pkg/cryptopp/trunk/
    csw/mgar/pkg/cryptopp/trunk/Makefile
    csw/mgar/pkg/cryptopp/trunk/checksums
    csw/mgar/pkg/cryptopp/trunk/files/
    csw/mgar/pkg/cryptopp/trunk/files/0001-Remove-static-for-functions-needed-by-cryptest.patch

Added: csw/mgar/pkg/cryptopp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cryptopp/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/cryptopp/trunk/Makefile	2018-07-21 12:34:27 UTC (rev 26447)
@@ -0,0 +1,40 @@
+# : Makefile 9089 2010-03-11 08:34:46Z wahwah $
+GARNAME = cryptopp
+GARVERSION = 5.6.0
+FVERSION = $(shell echo $(GARVERSION) | tr -d '.')
+CATEGORIES = lib
+
+DESCRIPTION = C++ class library of cryptographic schemes
+define BLURB
+endef
+
+MASTER_SITES = $(SF_MIRROR)
+DISTFILES  = $(GARNAME)$(FVERSION).zip
+
+PATCHFILES = 0001-Remove-static-for-functions-needed-by-cryptest.patch
+
+# File name regex to get notifications about upstream software releases
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+VENDOR_URL = http://www.cryptopp.com/
+
+LICENSE = License.txt
+
+WORKSRC = $(WORKDIR)
+
+EXTRA_CXXFLAGS = -DNDEBUG -g0 -native -template=no%extdef
+
+BUILD64 = 1
+CONFIGURE_SCRIPTS =
+
+BUILD_SCRIPTS = $(WORKSRC)/GNUmakefile
+BUILD_OVERRIDE_VARS = CXXFLAGS
+BUILD_OVERRIDE_VAR_CXXFLAGS = $(CXXFLAGS)
+
+TEST_SCRIPTS = custom
+
+include gar/category.mk
+
+test-custom:
+	cd $(WORKSRC) && ./cryptest.exe
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/cryptopp/trunk/checksums
===================================================================
--- csw/mgar/pkg/cryptopp/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/cryptopp/trunk/checksums	2018-07-21 12:34:27 UTC (rev 26447)
@@ -0,0 +1,2 @@
+88728b040d8ca9ae02d158159cc1f762  0001-Remove-static-for-functions-needed-by-cryptest.patch
+36f35789ad60489d58003d3c849807e8  cryptopp560.zip

Added: csw/mgar/pkg/cryptopp/trunk/files/0001-Remove-static-for-functions-needed-by-cryptest.patch
===================================================================
--- csw/mgar/pkg/cryptopp/trunk/files/0001-Remove-static-for-functions-needed-by-cryptest.patch	                        (rev 0)
+++ csw/mgar/pkg/cryptopp/trunk/files/0001-Remove-static-for-functions-needed-by-cryptest.patch	2018-07-21 12:34:27 UTC (rev 26447)
@@ -0,0 +1,52 @@
+From 5d6204ac5f3f3469427b327a9f1d9663f04e10c5 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Wed, 21 Apr 2010 17:39:48 +0200
+Subject: [PATCH] Remove static for functions needed by cryptest
+
+---
+ eccrypto.cpp |    8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/eccrypto.cpp b/eccrypto.cpp
+index fd8462f..d105c7d 100644
+--- a/eccrypto.cpp
++++ b/eccrypto.cpp
+@@ -28,7 +28,7 @@ static void ECDSA_TestInstantiations()
+ #endif
+ 
+ // VC60 workaround: complains when these functions are put into an anonymous namespace
+-static Integer ConvertToInteger(const PolynomialMod2 &x)
++Integer ConvertToInteger(const PolynomialMod2 &x)
+ {
+ 	unsigned int l = x.ByteCount();
+ 	SecByteBlock temp(l);
+@@ -41,7 +41,7 @@ static inline Integer ConvertToInteger(const Integer &x)
+ 	return x;
+ }
+ 
+-static bool CheckMOVCondition(const Integer &q, const Integer &r)
++bool CheckMOVCondition(const Integer &q, const Integer &r)
+ {
+ 	// see "Updated standards for validating elliptic curves", http://eprint.iacr.org/2007/343
+ 	Integer t = 1;
+@@ -113,7 +113,7 @@ struct OIDLessThan
+ 	inline bool operator()(const EcRecommendedParameters<T>& a, const EcRecommendedParameters<T>& b) {return a.oid < b.oid;}
+ };
+ 
+-static void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin, const EcRecommendedParameters<EC2N> *&end)
++void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin, const EcRecommendedParameters<EC2N> *&end)
+ {
+ 	// this array must be sorted by OID
+ 	static const EcRecommendedParameters<EC2N> rec[] = {
+@@ -248,7 +248,7 @@ static void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin
+ 	end = rec + sizeof(rec)/sizeof(rec[0]);
+ }
+ 
+-static void GetRecommendedParameters(const EcRecommendedParameters<ECP> *&begin, const EcRecommendedParameters<ECP> *&end)
++void GetRecommendedParameters(const EcRecommendedParameters<ECP> *&begin, const EcRecommendedParameters<ECP> *&end)
+ {
+ 	// this array must be sorted by OID
+ 	static const EcRecommendedParameters<ECP> rec[] = {
+-- 
+1.7.0
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list