diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/build-config.cxx | 4 |
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)); } } } |