diff options
author | lizatretyakova <lizatretyakova@google.com> | 2021-11-01 05:48:32 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2021-11-01 05:49:36 -0700 |
commit | 456657f9e5d5ed4193358e2772553f846e57150d (patch) | |
tree | 11ffa8aa645697ba0424952f21e2bd10d7c6601c /cc/mac/mac_wrapper.cc | |
parent | 010a2962dcce23be6b70ddf6141150e9e8680089 (diff) | |
download | tink-456657f9e5d5ed4193358e2772553f846e57150d.tar.gz |
Replace the deprecated crypto::tink::util::error::INTERNAL usages with its absl version absl::StatusCode::kInternal in third_party/tink/cc.
This CL is a part of Tink migration to using absl::Status{,Or} and absl::StatusCode.
PiperOrigin-RevId: 406805638
Diffstat (limited to 'cc/mac/mac_wrapper.cc')
-rw-r--r-- | cc/mac/mac_wrapper.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/mac/mac_wrapper.cc b/cc/mac/mac_wrapper.cc index 7ac948563..730602f3c 100644 --- a/cc/mac/mac_wrapper.cc +++ b/cc/mac/mac_wrapper.cc @@ -16,6 +16,7 @@ #include "tink/mac/mac_wrapper.h" +#include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "tink/crypto_format.h" #include "tink/internal/util.h" @@ -51,7 +52,8 @@ class MacSetWrapper : public Mac { util::Status Validate(PrimitiveSet<Mac>* mac_set) { if (mac_set == nullptr) { - return util::Status(util::error::INTERNAL, "mac_set must be non-NULL"); + return util::Status(absl::StatusCode::kInternal, + "mac_set must be non-NULL"); } if (mac_set->get_primary() == nullptr) { return util::Status(util::error::INVALID_ARGUMENT, |