diff options
author | Ralph Tandetzky <ralph.tandetzky@optimeas.de> | 2016-12-01 15:37:04 +0100 |
---|---|---|
committer | Ralph Tandetzky <ralph.tandetzky@optimeas.de> | 2016-12-01 15:37:04 +0100 |
commit | 35a2ef10a23a9b668428c931f408a4a8154adbc9 (patch) | |
tree | 78cf235ef9ebb1191e42a93ed59090ffbe705b3c /pubkey.h | |
parent | 3fc97d2bfff25d571049466a6803e8edcad2ceb4 (diff) | |
download | cryptopp-git-35a2ef10a23a9b668428c931f408a4a8154adbc9.tar.gz |
Fix: GCC warning "type qualifiers ignored on function return type".
This pedantic message appeared all over the code. Also removed one warning about an unused variable in release build.
Diffstat (limited to 'pubkey.h')
-rw-r--r-- | pubkey.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -719,7 +719,7 @@ CRYPTOPP_DLL void CRYPTOPP_API P1363_MGF1KDF2_Common(HashTransformation &hash, b class P1363_MGF1 : public MaskGeneratingFunction
{
public:
- CRYPTOPP_STATIC_CONSTEXPR char* const CRYPTOPP_API StaticAlgorithmName() {return "MGF1";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "MGF1";}
void GenerateAndMask(HashTransformation &hash, byte *output, size_t outputLength, const byte *input, size_t inputLength, bool mask = true) const
{
P1363_MGF1KDF2_Common(hash, output, outputLength, input, inputLength, NULL, 0, mask, 0);
@@ -1986,7 +1986,7 @@ public: virtual ~DL_KeyAgreementAlgorithm_DH() {}
#endif
- CRYPTOPP_STATIC_CONSTEXPR char* const CRYPTOPP_API StaticAlgorithmName()
+ CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName()
{return COFACTOR_OPTION::ToEnum() == INCOMPATIBLE_COFACTOR_MULTIPLICTION ? "DHC" : "DH";}
Element AgreeWithEphemeralPrivateKey(const DL_GroupParameters<Element> ¶ms, const DL_FixedBasePrecomputation<Element> &publicPrecomputation, const Integer &privateExponent) const
|