aboutsummaryrefslogtreecommitdiff
path: root/bpkg/checksum.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/checksum.hxx')
-rw-r--r--bpkg/checksum.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/bpkg/checksum.hxx b/bpkg/checksum.hxx
index f196f1a..54e5b3c 100644
--- a/bpkg/checksum.hxx
+++ b/bpkg/checksum.hxx
@@ -1,12 +1,9 @@
// file : bpkg/checksum.hxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef BPKG_CHECKSUM_HXX
#define BPKG_CHECKSUM_HXX
-#include <libbutl/sha256.mxx>
-
#include <bpkg/types.hxx>
#include <bpkg/utility.hxx>
@@ -17,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.
@@ -27,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