summaryrefslogtreecommitdiffstats
path: root/remoting/host/pin_hash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/pin_hash.cc')
-rw-r--r--remoting/host/pin_hash.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/host/pin_hash.cc b/remoting/host/pin_hash.cc
index c9b1ca3c..fe17f38 100644
--- a/remoting/host/pin_hash.cc
+++ b/remoting/host/pin_hash.cc
@@ -16,7 +16,9 @@ std::string MakeHostPinHash(const std::string& host_id,
std::string hash = protocol::AuthenticationMethod::ApplyHashFunction(
protocol::AuthenticationMethod::HMAC_SHA256, host_id, pin);
std::string hash_base64;
- base::Base64Encode(hash, &hash_base64);
+ if (!base::Base64Encode(hash, &hash_base64)) {
+ LOG(FATAL) << "Base64Encode failed";
+ }
return "hmac:" + hash_base64;
}