aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-10 16:00:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-10 16:00:35 +0300
commitb668f58f0776d1b6251e2d9f18c1da332abdc4fc (patch)
tree40547d67ef6618e5e7f4ffd7bfb363db5c742c98
parent7e606b8926a2ab9c46e76a2d1c8e8e1d39e8961f (diff)
Make use of ifdstream hashing
-rw-r--r--bbot/agent/agent.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx
index a5209e8..bc0b0c3 100644
--- a/bbot/agent/agent.cxx
+++ b/bbot/agent/agent.cxx
@@ -943,13 +943,11 @@ try
ops.openssl (), "rsa",
ops.openssl_option (), "-pubout", "-outform", "DER");
- vector<char> k (os.in.read_binary ());
+ fingerprint = sha256 (os.in).string ();
os.in.close ();
if (!os.wait ())
throw_generic_error (EIO);
-
- fingerprint = sha256 (k.data (), k.size ()).string ();
}
catch (const system_error& e)
{