summaryrefslogtreecommitdiff
path: root/src/lib/digester.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-16 00:38:08 +0200
committerCarl Hetherington <cth@carlh.net>2020-04-17 00:42:54 +0200
commit3f2bec7b6ee2f27b2de056cdc0137744d2e9e253 (patch)
tree34e0d9f72abe35e8e477d92036444d9c47fb7e28 /src/lib/digester.h
parent5f4a41f20a189ec2863760cd1f5117435277f40f (diff)
Add feature to Socket so that it can send digests of data it has sent
and check those digests on receive.
Diffstat (limited to 'src/lib/digester.h')
-rw-r--r--src/lib/digester.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/digester.h b/src/lib/digester.h
index bec1f6416..6cdaf2331 100644
--- a/src/lib/digester.h
+++ b/src/lib/digester.h
@@ -40,6 +40,10 @@ public:
std::string get () const;
+ void get (uint8_t* buffer) const;
+
+ int size () const;
+
private:
mutable md5_ctx _context;
mutable boost::optional<std::string> _digest;