From 098559ca3552ebd8f80a6d28254f4fa58913b751 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jul 2016 08:56:48 +0200 Subject: Add DLL export/import support --- butl/sha256 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'butl/sha256') diff --git a/butl/sha256 b/butl/sha256 index a1d0c38..77fa6bd 100644 --- a/butl/sha256 +++ b/butl/sha256 @@ -10,6 +10,8 @@ #include #include // size_t +#include + namespace butl { // SHA256 checksum calculator. @@ -19,7 +21,7 @@ namespace butl // // cerr << sha256 ("123").string () << endl; // - class sha256 + class LIBBUTL_EXPORT sha256 { public: sha256 (); @@ -85,14 +87,14 @@ namespace butl // like 01:AB:CD:...). Throw invalid_argument if the argument is not a valid // SHA256 string. // - std::string + LIBBUTL_EXPORT std::string sha256_to_fingerprint (const std::string&); // Convert a fingerprint (32 colon-separated hex digit pairs) to the SHA256 // string representation (64 lower case hex digits). Throw invalid_argument // if the argument is not a valid fingerprint. // - std::string + LIBBUTL_EXPORT std::string fingerprint_to_sha256 (const std::string&); }; -- cgit v1.1