Skip to content

Commit

Permalink
Mark KeysetHandle::GenerateNew as ABSL_DEPRECATE_AND_INLINE.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 578215778
Change-Id: I7b4af32f3f74ac7f53812decb56042368b369435
  • Loading branch information
cindylindeed authored and copybara-github committed Oct 31, 2023
1 parent 6ef67b3 commit 9e47ade
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tink/keyset_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,18 @@ class KeysetHandle {
GenerateNew(const google::crypto::tink::KeyTemplate& key_template,
const crypto::tink::KeyGenConfiguration& config);

// TODO(b/265865177): Deprecate and inline.
// Returns a KeysetHandle containing one new key generated according to
// `key_template` using the global registry. When specified, the keyset is
// annotated for monitoring with `monitoring_annotations`.
ABSL_DEPRECATED("Inline this function's body at its call sites")
static crypto::tink::util::StatusOr<std::unique_ptr<KeysetHandle>>
GenerateNew(const google::crypto::tink::KeyTemplate& key_template,
const absl::flat_hash_map<std::string, std::string>&
monitoring_annotations) {
return GenerateNew(key_template, crypto::tink::KeyGenConfigGlobalRegistry(),
monitoring_annotations);
}
ABSL_DEPRECATED("Inline this function's body at its call sites")
static crypto::tink::util::StatusOr<std::unique_ptr<KeysetHandle>>
GenerateNew(const google::crypto::tink::KeyTemplate& key_template) {
return GenerateNew(key_template,
Expand Down

0 comments on commit 9e47ade

Please sign in to comment.