aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{