diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-16 00:38:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-17 00:42:54 +0200 |
| commit | 3f2bec7b6ee2f27b2de056cdc0137744d2e9e253 (patch) | |
| tree | 34e0d9f72abe35e8e477d92036444d9c47fb7e28 /src/lib/digester.h | |
| parent | 5f4a41f20a189ec2863760cd1f5117435277f40f (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.h | 4 |
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; |
