ODK and Shared Libraries
In this code drop we introduce the ODK dependency. The reference implementation has been updated to make use of the ODK and the related tests have been included. In addition, we have included an example of how a shared libraries can be created. This will allow make it easier to test and verify different implementations of the API. Most other changes introduce by this code drop were made to clean-up the reference implementation and limit dependencies.
This commit is contained in:
@@ -14,6 +14,8 @@ namespace widevine {
|
||||
|
||||
struct License {
|
||||
std::vector<uint8_t> request;
|
||||
|
||||
std::vector<uint8_t> core_message;
|
||||
std::vector<uint8_t> message;
|
||||
std::vector<uint8_t> signature;
|
||||
|
||||
@@ -68,6 +70,10 @@ class TestLicenseBuilder {
|
||||
|
||||
void SetVerificationStatus(VerificationStatus setting);
|
||||
|
||||
// If set, then Build() will populate |core_message| in License with the
|
||||
// matching ODK core message. If not set, then |core_message| will be empty.
|
||||
void SetUseODK(bool setting);
|
||||
|
||||
// Gets the serialized license request and response (in components) that would
|
||||
// have been used in the license exchange.
|
||||
void Build(const RsaPublicKey& public_key, License* license) const;
|
||||
@@ -79,6 +85,7 @@ class TestLicenseBuilder {
|
||||
video_widevine::License response_;
|
||||
std::string serialized_request_;
|
||||
std::string container_key_;
|
||||
bool use_odk_ = false;
|
||||
};
|
||||
|
||||
} // namespace widevine
|
||||
|
||||
Reference in New Issue
Block a user