summaryrefslogtreecommitdiff
path: root/pubkey.h
diff options
context:
space:
mode:
authorRalph Tandetzky <ralph.tandetzky@optimeas.de>2016-12-01 15:37:04 +0100
committerRalph Tandetzky <ralph.tandetzky@optimeas.de>2016-12-01 15:37:04 +0100
commit35a2ef10a23a9b668428c931f408a4a8154adbc9 (patch)
tree78cf235ef9ebb1191e42a93ed59090ffbe705b3c /pubkey.h
parent3fc97d2bfff25d571049466a6803e8edcad2ceb4 (diff)
downloadcryptopp-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pubkey.h b/pubkey.h
index 57f0f8a4..1f7800f7 100644
--- a/pubkey.h
+++ b/pubkey.h
@@ -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> &params, const DL_FixedBasePrecomputation<Element> &publicPrecomputation, const Integer &privateExponent) const