aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/mac_config.cc
diff options
context:
space:
mode:
authorThomas Holenstein <tholenst@google.com>2018-10-04 08:18:30 -0700
committerTink Team <noreply@google.com>2018-10-04 11:49:15 -0700
commit84edcd232fa8f8ef8056510a268ad4a003064052 (patch)
treed0f407306001fc8a208dd0115d83f3a554dff1ca /cc/mac/mac_config.cc
parent36b26da2559e69d1a53e6790aa731b6d728279bf (diff)
downloadtink-84edcd232fa8f8ef8056510a268ad4a003064052.tar.gz
Change to use the non-deprecated versions of RegisterKeyManager and AddCatalogue.
PiperOrigin-RevId: 215739830 GitOrigin-RevId: d92587742b8641f66eb9fd8b3b7b8db6b4a82911
Diffstat (limited to 'cc/mac/mac_config.cc')
-rw-r--r--cc/mac/mac_config.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/mac/mac_config.cc b/cc/mac/mac_config.cc
index 7d3a95261..254a3d9cc 100644
--- a/cc/mac/mac_config.cc
+++ b/cc/mac/mac_config.cc
@@ -16,11 +16,11 @@
#include "tink/mac/mac_config.h"
+#include "absl/memory/memory.h"
#include "tink/config.h"
#include "tink/mac/mac_catalogue.h"
#include "tink/util/status.h"
-
namespace crypto {
namespace tink {
@@ -49,7 +49,8 @@ const google::crypto::tink::RegistryConfig& MacConfig::Latest() {
// static
util::Status MacConfig::Register() {
- auto status = Registry::AddCatalogue(kCatalogueName, new MacCatalogue());
+ auto status =
+ Registry::AddCatalogue(kCatalogueName, absl::make_unique<MacCatalogue>());
if (!status.ok()) return status;
return Config::Register(Latest());
}