summaryrefslogtreecommitdiff
path: root/emsa2.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 /emsa2.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 'emsa2.h')
-rw-r--r--emsa2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/emsa2.h b/emsa2.h
index 7e53002d..82ae417e 100644
--- a/emsa2.h
+++ b/emsa2.h
@@ -61,7 +61,7 @@ CRYPTOPP_DLL_TEMPLATE_CLASS EMSA2HashId<SHA512>;
class CRYPTOPP_DLL EMSA2Pad : public EMSA2HashIdLookup<PK_DeterministicSignatureMessageEncodingMethod>
{
public:
- CRYPTOPP_STATIC_CONSTEXPR char* const CRYPTOPP_API StaticAlgorithmName() {return "EMSA2";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "EMSA2";}
size_t MinRepresentativeBitLength(size_t hashIdentifierLength, size_t digestLength) const
{CRYPTOPP_UNUSED(hashIdentifierLength); return 8*digestLength + 31;}