From fad78ea25d08afb65d00ed01b03ca916f36415a3 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 13 Mar 2006 13:26:26 +0000 Subject: [PATCH] add missing Ref() function --- trunk/c5/cryptlib.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/c5/cryptlib.h b/trunk/c5/cryptlib.h index 9b173239..46ac0beb 100644 --- a/trunk/c5/cryptlib.h +++ b/trunk/c5/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;