diff options
author | Sen Jiang <senj@google.com> | 2017-11-14 17:42:13 -0800 |
---|---|---|
committer | Sen Jiang <senj@google.com> | 2018-09-14 13:05:05 -0700 |
commit | 57f9180023bddb748e3bd86e3c206636a00e48ee (patch) | |
tree | 07575729e36aa7778ef92760af88b0229403682c /common/error_code_utils.cc | |
parent | d944faad2e460af36df59e95c5371ca6b87309d3 (diff) |
Calculate verity hash tree.
Calculate verity hash tree in FilesystemVerifierAction based on configs
specified in protobuf, and write it to target partition before reading
from those blocks.
A new error code kVerityCalculationError was added to report error if
it fails.
Bug: 28171891
Test: update_engine_unittests
Change-Id: I492885a0655bf51043902f578720fffd87e6a3cf
Diffstat (limited to 'common/error_code_utils.cc')
-rw-r--r-- | common/error_code_utils.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/error_code_utils.cc b/common/error_code_utils.cc index 930dafe6..a1607f52 100644 --- a/common/error_code_utils.cc +++ b/common/error_code_utils.cc @@ -156,6 +156,8 @@ string ErrorCodeToString(ErrorCode code) { return "ErrorCode::kRollbackNotPossible"; case ErrorCode::kFirstActiveOmahaPingSentPersistenceError: return "ErrorCode::kFirstActiveOmahaPingSentPersistenceError"; + case ErrorCode::kVerityCalculationError: + return "ErrorCode::kVerityCalculationError"; // Don't add a default case to let the compiler warn about newly added // error codes which should be added here. } |