summaryrefslogtreecommitdiff
path: root/cryptlib.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-03-13 13:26:26 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-03-13 13:26:26 +0000
commitfc3a5e7e8f632112420df1d99f0d2080f19477d0 (patch)
treea96149623a07039ebba65712864d3f93857d1dea /cryptlib.h
parent11a2fc45647b576d77ad0f7534000815fbf20f42 (diff)
downloadcryptopp-fc3a5e7e8f632112420df1d99f0d2080f19477d0.tar.gz
add missing Ref() function
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@216 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'cryptlib.h')
-rw-r--r--cryptlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cryptlib.h b/cryptlib.h
index 9b17323..46ac0be 100644
--- a/cryptlib.h
+++ b/cryptlib.h
@@ -521,6 +521,11 @@ public:
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE HashTransformation : public Algorithm
{
public:
+ //! return a reference to this object,
+ /*! This function is useful for passing a temporary HashTransformation object to a
+ function that takes a non-const reference. */
+ HashTransformation& Ref() {return *this;}
+
//! process more input
virtual void Update(const byte *input, size_t length) =0;