Skip to content

Commit

Permalink
Mark KeysetHandle::GetPublicKeysetHandle as ABSL_DEPRECATE_AND_INLINE.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 578232638
Change-Id: Ib917780b01872cce4275729958dfd310a50c3b2f
  • Loading branch information
cindylindeed authored and Copybara-Service committed Oct 31, 2023
1 parent 9e47ade commit 1e2f4a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 0 additions & 5 deletions tink/core/keyset_handle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,6 @@ KeysetHandle::GetPublicKeysetHandle(const KeyGenConfiguration& config) const {
new KeysetHandle(std::move(public_keyset), *entries));
}

util::StatusOr<std::unique_ptr<KeysetHandle>>
KeysetHandle::GetPublicKeysetHandle() const {
return GetPublicKeysetHandle(KeyGenConfigGlobalRegistry());
}

crypto::tink::util::StatusOr<uint32_t> KeysetHandle::AddToKeyset(
const google::crypto::tink::KeyTemplate& key_template, bool as_primary,
const KeyGenConfiguration& config, Keyset* keyset) {
Expand Down
5 changes: 4 additions & 1 deletion tink/keyset_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,11 @@ class KeysetHandle {
// private keys in this handle. Relies on key type managers stored in the
// global registry to do so. Returns an error if this handle contains keys
// that are not private keys.
ABSL_DEPRECATED("Inline this function's body at its call sites")
crypto::tink::util::StatusOr<std::unique_ptr<KeysetHandle>>
GetPublicKeysetHandle() const;
GetPublicKeysetHandle() const {
return GetPublicKeysetHandle(crypto::tink::KeyGenConfigGlobalRegistry());
}

// Creates a wrapped primitive using this keyset handle and config, which
// stores necessary primitive wrappers and key type managers.
Expand Down

0 comments on commit 1e2f4a5

Please sign in to comment.