aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-10 15:59:50 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-10 15:59:50 +0300
commit2aa02defe392a209fe9f11231c82d607813389b9 (patch)
tree3f6d15c787920d737c3a0208fc3130b9417946e2
parent51fa23a58e6c01f6abc13908da32ea1215c05635 (diff)
Make use of ifdstream hashing
-rw-r--r--mod/build-config.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/build-config.cxx b/mod/build-config.cxx
index 84562e7..4913555 100644
--- a/mod/build-config.cxx
+++ b/mod/build-config.cxx
@@ -75,13 +75,13 @@ namespace brep
"pkey",
o.openssl_option (), "-pubin", "-outform", "DER");
- vector<char> k (os.in.read_binary ());
+ string fp (sha256 (os.in).string ());
os.in.close ();
if (!os.wait ())
throw io_error ("");
- ak->emplace (sha256 (k.data (), k.size ()).string (), move (p));
+ ak->emplace (move (fp), move (p));
}
}
}