//////////////////////////////////////////////////////////////////////////////// // Copyright 2019 Google LLC. // // This software is licensed under the terms defined in the Widevine Master // License Agreement. For a copy of this agreement, please contact // widevine-licensing@google.com. //////////////////////////////////////////////////////////////////////////////// #ifndef COMMON_DEVICE_INFO_UTIL_H_ #define COMMON_DEVICE_INFO_UTIL_H_ #include #include "protos/public/provisioned_device_info.pb.h" namespace widevine { // Helpers function to compare the expected and actual make model field. bool IsMatchedMakeModel(const std::string& expected_make, const std::string& expected_model, const std::string& make_from_client, const std::string& model_from_client); /** * Return true if make/model from client in device_info matches any of the * registered makes/models. */ bool VerifyMakeModel(const ProvisionedDeviceInfo& device_info, const std::string& make_from_client, const std::string& model_from_client); } // namespace widevine #endif // COMMON_DEVICE_INFO_UTIL_H_