Re-add static functions to eccrypto.cpp

I think another approach is better for CMake
This commit is contained in:
Jeffrey Walton 2018-11-09 21:29:59 -05:00
parent 9dfc010425
commit 776a2195bd
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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[] = {