diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-20 20:46:50 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-20 22:58:33 +0000 |
commit | 216f062eb875eb0769d63c65ed0f5c8de51a9590 (patch) | |
tree | 514e2bae17a6f8ad056914f26e950fb0df9e662c /src/common/util.h | |
parent | mlog: only silence errors for net by default, not net.* (diff) | |
download | monero-216f062eb875eb0769d63c65ed0f5c8de51a9590.tar.xz |
util: add a SHA256 function
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index bef4b6202..8ab469129 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -184,4 +184,6 @@ namespace tools bool is_local_address(const std::string &address); int vercmp(const char *v0, const char *v1); // returns < 0, 0, > 0, similar to strcmp, but more human friendly than lexical - does not attempt to validate + + bool sha256sum(const std::string &filename, crypto::hash &hash); } |