summaryrefslogtreecommitdiff
path: root/src/modules/m_hash.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-10 17:06:52 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-10 17:06:52 +0000
commit26cd5393c9308fabe73c41870f06f73a5b001cd7 (patch)
treef9cfd6afe3b35ea81add40d4bb5246a66a536f16 /src/modules/m_hash.h
parent892b3fde2fa974e339f049283d8d3e5f75a49107 (diff)
Update m_cloaking to use free-form keys instead of weakening the hash IV
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11820 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_hash.h')
-rw-r--r--src/modules/m_hash.h6
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