diff options
author | Bartosz Przydatek <przydatek@google.com> | 2018-06-28 13:02:03 -0700 |
---|---|---|
committer | Tink Team <noreply@google.com> | 2018-07-03 11:21:52 -0700 |
commit | b6dc8848dde32bddaf6f91b59d9b884e67122873 (patch) | |
tree | 5ae4364c5925afabc918ef3bfeb55621cbc43855 /cc/registry.h | |
parent | 14cbefe6dfcdbe00832e5af1ed7a96dc050233ff (diff) | |
download | tink-b6dc8848dde32bddaf6f91b59d9b884e67122873.tar.gz |
Moving C++ to proto lite, and changing from JSONCPP to RapidJSON.
(based on cl/196889713 and cl/197018177)
PiperOrigin-RevId: 202529544
GitOrigin-RevId: f290535f5a57642982d30c43b113cdae6fd7a385
Diffstat (limited to 'cc/registry.h')
-rw-r--r-- | cc/registry.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/registry.h b/cc/registry.h index dede234cd..09b2dfdf3 100644 --- a/cc/registry.h +++ b/cc/registry.h @@ -112,7 +112,7 @@ class Registry { // and calls manager's GetPrimitive(key)-method. template <class P> static crypto::tink::util::StatusOr<std::unique_ptr<P>> GetPrimitive( - const std::string& type_url, const portable_proto::Message& key); + const std::string& type_url, const portable_proto::MessageLite& key); // Creates a set of primitives corresponding to the keys with // (status == ENABLED) in the keyset given in 'keyset_handle', @@ -298,7 +298,7 @@ crypto::tink::util::StatusOr<std::unique_ptr<P>> Registry::GetPrimitive( // static template <class P> crypto::tink::util::StatusOr<std::unique_ptr<P>> Registry::GetPrimitive( - const std::string& type_url, const portable_proto::Message& key) { + const std::string& type_url, const portable_proto::MessageLite& key) { auto key_manager_result = get_key_manager<P>(type_url); if (key_manager_result.ok()) { return key_manager_result.ValueOrDie()->GetPrimitive(key); |