diff options
author | paulavidas <paulavidas@google.com> | 2019-07-30 08:40:17 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2019-07-30 08:41:22 -0700 |
commit | 0b558e486b091092860876f6d9900cb68c671a7c (patch) | |
tree | bcfbc59388f3689e153da520bd8ea742dc6b1e58 /cc/registry.h | |
parent | 0de5eb41d4e07c10f1254bf1b2e79584327e6d29 (diff) | |
download | tink-0b558e486b091092860876f6d9900cb68c671a7c.tar.gz |
Deprecate catalogues.
PiperOrigin-RevId: 260722972
Diffstat (limited to 'cc/registry.h')
-rw-r--r-- | cc/registry.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/registry.h b/cc/registry.h index b3850c353..01c40a0fa 100644 --- a/cc/registry.h +++ b/cc/registry.h @@ -56,6 +56,7 @@ class Registry { // (cannot return reference directly, as StatusOr does not support it, // see https://goo.gl/x0ymDz) template <class P> + ABSL_DEPRECATED("Catalogues are not supported anymore.") static crypto::tink::util::StatusOr<const Catalogue<P>*> get_catalogue( const std::string& catalogue_name) { return RegistryImpl::GlobalInstance().get_catalogue<P>(catalogue_name); @@ -68,6 +69,7 @@ class Registry { // and fails if the given 'catalogue' tries to override // an existing, different catalogue for the specified name. template <class ConcreteCatalogue> + ABSL_DEPRECATED("Catalogues are not supported anymore.") static crypto::tink::util::Status AddCatalogue( const std::string& catalogue_name, std::unique_ptr<ConcreteCatalogue> catalogue) { |