diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-11-09 21:29:59 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-11-09 21:29:59 -0500 |
commit | 776a2195bd78c80130b1809b22a5e4d3aecb5b95 (patch) | |
tree | 35482eff76d73f826dc8355d5732319af2720814 /eccrypto.cpp | |
parent | 9dfc01042520de2d6c980f6c3dab71694aa1e0c5 (diff) | |
download | cryptopp-git-776a2195bd78c80130b1809b22a5e4d3aecb5b95.tar.gz |
Re-add static functions to eccrypto.cpp
I think another approach is better for CMake
Diffstat (limited to 'eccrypto.cpp')
-rw-r--r-- | eccrypto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eccrypto.cpp b/eccrypto.cpp index 117efca3..e13b643f 100644 --- a/eccrypto.cpp +++ b/eccrypto.cpp @@ -136,7 +136,7 @@ struct OIDLessThan inline bool operator()(const EcRecommendedParameters<T>& a, const EcRecommendedParameters<T>& b) {return a.oid < b.oid;}
};
-void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin, const EcRecommendedParameters<EC2N> *&end)
+static void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin, const EcRecommendedParameters<EC2N> *&end)
{
// this array must be sorted by OID
static const EcRecommendedParameters<EC2N> rec[] = {
@@ -272,7 +272,7 @@ void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin, const }
// See https://www.cryptopp.com/wiki/SM2 for details on sm2p256v1 and sm2encrypt_recommendedParameters
-void GetRecommendedParameters(const EcRecommendedParameters<ECP> *&begin, const EcRecommendedParameters<ECP> *&end)
+static void GetRecommendedParameters(const EcRecommendedParameters<ECP> *&begin, const EcRecommendedParameters<ECP> *&end)
{
// this array must be sorted by OID
static const EcRecommendedParameters<ECP> rec[] = {
|