diff options
Diffstat (limited to 'src/modules/m_hash.h')
-rw-r--r-- | src/modules/m_hash.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_hash.h b/src/modules/m_hash.h index f39d0eee7..08a24eb85 100644 --- a/src/modules/m_hash.h +++ b/src/modules/m_hash.h @@ -46,7 +46,7 @@ struct HashNameRequest : public Request struct HashRequest : public Request { const std::string data; - std::string result; + std::string binresult; /** Initialize HashSumRequest for sending. * @param Me A pointer to the sending module * @param Target A pointer to the hashing module @@ -57,6 +57,10 @@ struct HashRequest : public Request { Send(); } + inline std::string hex() + { + return BinToHex(binresult); + } }; /** Allows the IVs for the hash to be specified. As the choice of initial IV is |