diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-09 08:57:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-10 07:15:52 +0200 |
commit | 843627b2d3f801a7e9e45af0cc2cd4654077fac8 (patch) | |
tree | 5c588297539bc0b41997c2490cbc0b5173b7a8e4 /bpkg/checksum.hxx | |
parent | 450d6159206501dd69c3e8877ad37eeb3cd15049 (diff) |
Add butl::sha256 to types.hxx
Diffstat (limited to 'bpkg/checksum.hxx')
-rw-r--r-- | bpkg/checksum.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bpkg/checksum.hxx b/bpkg/checksum.hxx index 73f52e8..54e5b3c 100644 --- a/bpkg/checksum.hxx +++ b/bpkg/checksum.hxx @@ -4,8 +4,6 @@ #ifndef BPKG_CHECKSUM_HXX #define BPKG_CHECKSUM_HXX -#include <libbutl/sha256.hxx> - #include <bpkg/types.hxx> #include <bpkg/utility.hxx> @@ -16,7 +14,7 @@ namespace bpkg // Calculate SHA256 sum of the specified memory buffer in binary mode. // inline string - sha256 (const char* buf, size_t n) {return butl::sha256 (buf, n).string ();} + sha256sum (const char* buf, size_t n) {return sha256 (buf, n).string ();} // The same but for a file. Issue diagnostics and throw failed if anything // goes wrong. @@ -26,7 +24,7 @@ namespace bpkg // optimized for the platform. // string - sha256 (const common_options&, const path& file); + sha256sum (const common_options&, const path& file); } #endif // BPKG_CHECKSUM_HXX |