aboutsummaryrefslogtreecommitdiff
path: root/cc/core
diff options
context:
space:
mode:
authorioannanedelcu <ioannanedelcu@google.com>2023-05-31 14:52:59 -0700
committerCopybara-Service <copybara-worker@google.com>2023-05-31 14:53:58 -0700
commit8b9be40f3c6d2ff5c220a33afcb997f39ef90b91 (patch)
tree6ba9e7d9a00312556395e217954266e4943555aa /cc/core
parent4b641ad520a5b6ab64913b6bb0617f85faf9eef8 (diff)
downloadtink-8b9be40f3c6d2ff5c220a33afcb997f39ef90b91.tar.gz
Make the SecretKeyAccessToken optional for the key parsers and serializers.
PiperOrigin-RevId: 536830719
Diffstat (limited to 'cc/core')
-rw-r--r--cc/core/keyset_handle.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/core/keyset_handle.cc b/cc/core/keyset_handle.cc
index bab5bfe99..94d67232f 100644
--- a/cc/core/keyset_handle.cc
+++ b/cc/core/keyset_handle.cc
@@ -218,7 +218,8 @@ util::StatusOr<KeysetHandle::Entry> KeysetHandle::CreateEntry(
util::StatusOr<std::shared_ptr<const Key>> key =
internal::MutableSerializationRegistry::GlobalInstance()
- .ParseKeyWithLegacyFallback(*serialization);
+ .ParseKeyWithLegacyFallback(*serialization,
+ InsecureSecretKeyAccess::Get());
if (!key.ok()) {
return key.status();
}