aboutsummaryrefslogtreecommitdiff
path: root/butl/sha256
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-25 08:56:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-25 08:56:48 +0200
commit098559ca3552ebd8f80a6d28254f4fa58913b751 (patch)
tree1eb6f65b492d3217a380a909f6810a5f3e00cc37 /butl/sha256
parent6c8e3f09c185d7fa4664ccd9e5c4f623a17b84cc (diff)
Add DLL export/import support
Diffstat (limited to 'butl/sha256')
-rw-r--r--butl/sha2568
1 files changed, 5 insertions, 3 deletions
diff --git a/butl/sha256 b/butl/sha256
index a1d0c38..77fa6bd 100644
--- a/butl/sha256
+++ b/butl/sha256
@@ -10,6 +10,8 @@
#include <cstdint>
#include <cstddef> // size_t
+#include <butl/export>
+
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&);
};