Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / lib / digester.h
index 92eb5faa3bc6684267b91711339f6e2f3be53b87..6cdaf2331b8bda04a7aec588c659add946f8c79c 100644 (file)
@@ -18,7 +18,7 @@
 
 */
 
-#include <openssl/md5.h>
+#include <nettle/md5.h>
 #include <boost/noncopyable.hpp>
 #include <boost/optional.hpp>
 #include <string>
@@ -40,7 +40,11 @@ public:
 
        std::string get () const;
 
+       void get (uint8_t* buffer) const;
+
+       int size () const;
+
 private:
-       mutable MD5_CTX _context;
+       mutable md5_ctx _context;
        mutable boost::optional<std::string> _digest;
 };