From 2fe7c710b13a0cd429b800fe5e147414c6c63596 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 20 Oct 2017 05:20:03 +0300 Subject: Make use of butl::sha256 class --- bpkg/fetch.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bpkg/fetch.cxx') diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx index a4f238a..d6e7d76 100644 --- a/bpkg/fetch.cxx +++ b/bpkg/fetch.cxx @@ -640,9 +640,10 @@ namespace bpkg is.close (); - string sha256sum (sha256 (o, bs)); + string s (bs.str ()); + string sha256sum (sha256 (s.c_str (), s.size ())); - istringstream ts (bs.str ()); // Text mode. + istringstream ts (s); // Text mode. manifest_parser mp (ts, url); M m (mp, ignore_unknown); -- cgit v1.1