From 2aa02defe392a209fe9f11231c82d607813389b9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 10 Jul 2018 15:59:50 +0300 Subject: Make use of ifdstream hashing --- mod/build-config.cxx | 4 ++-- 1 file 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 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)); } } } -- cgit v1.1