summaryrefslogtreecommitdiff
path: root/pubkey.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-14 20:50:41 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-14 20:50:41 -0400
commit875852fcbc8a099ff6b793230a6236fbfa04b52b (patch)
tree6487f35149f747c7f936b110abd4cfcb8861850a /pubkey.h
parent299288b2e72ea04fd4936da0c206d9d2b0a0baa0 (diff)
downloadcryptopp-git-875852fcbc8a099ff6b793230a6236fbfa04b52b.tar.gz
Cleared SunCC warning "DL_ElgamalLikeSignatureAlgorithm is expected to return a value"
Diffstat (limited to 'pubkey.h')
-rw-r--r--pubkey.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pubkey.h b/pubkey.h
index 183a7430..7f4cbb3c 100644
--- a/pubkey.h
+++ b/pubkey.h
@@ -55,6 +55,12 @@
// VC60 workaround: this macro is defined in shlobj.h and conflicts with a template parameter used in this file
#undef INTERFACE
+#if defined(__SUNPRO_CC)
+# define MAYBE_RETURN_FOR_SOLARIS(x) return x
+#else
+# define MAYBE_RETURN_FOR_SOLARIS(x) CRYPTOPP_UNUSED(x)
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
//! \class TrapdoorFunctionBounds
@@ -1308,6 +1314,7 @@ public:
{
CRYPTOPP_UNUSED(params); CRYPTOPP_UNUSED(publicKey); CRYPTOPP_UNUSED(r); CRYPTOPP_UNUSED(s);
throw NotImplemented("DL_ElgamalLikeSignatureAlgorithm: this signature scheme does not support message recovery");
+ MAYBE_RETURN_FOR_SOLARIS(Integer::Zero());
}
virtual size_t RLen(const DL_GroupParameters<T> &params) const
{return params.GetSubgroupOrder().ByteCount();}