summaryrefslogtreecommitdiff
path: root/indra/llcommon/llmd5.h
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2010-07-20 09:14:03 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2010-07-20 09:14:03 -0400
commit22232ccf050e34841c248ea29fed8f64b8abab6b (patch)
tree1af9e8dedfc334e76e7daa9ac10731f91d0df52b /indra/llcommon/llmd5.h
parent94cae52bb791b8ceef4d55eed8c8726e63572b61 (diff)
parent1dae91d7354aef57625e3508b23a4bb21de242e8 (diff)
merge
Diffstat (limited to 'indra/llcommon/llmd5.h')
-rw-r--r--indra/llcommon/llmd5.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/llcommon/llmd5.h b/indra/llcommon/llmd5.h
index df9d7324ab..4e68ba0d5e 100644
--- a/indra/llcommon/llmd5.h
+++ b/indra/llcommon/llmd5.h
@@ -95,6 +95,7 @@ public:
void update (const uint1 *input, const uint4 input_length);
void update (std::istream& stream);
void update (FILE *file);
+ void update (const std::string& str);
void finalize ();
// constructors for special circumstances. All these constructors finalize
@@ -105,11 +106,10 @@ public:
LLMD5 (const unsigned char *string, const unsigned int number);
// methods to acquire finalized result
- void raw_digest(unsigned char *array); // provide 16-byte array for binary data
- void hex_digest(char *string); // provide 33-byte array for ascii-hex string
- friend std::ostream& operator<< (std::ostream&, LLMD5 context);
-
+ void raw_digest(unsigned char *array) const; // provide 16-byte array for binary data
+ void hex_digest(char *string) const; // provide 33-byte array for ascii-hex string
+ friend std::ostream& operator<< (std::ostream&, LLMD5 context);
private:
@@ -131,4 +131,7 @@ private:
};
+LL_COMMON_API bool operator==(const LLMD5& a, const LLMD5& b);
+LL_COMMON_API bool operator!=(const LLMD5& a, const LLMD5& b);
+
#endif // LL_LLMD5_H