WvPL License SDK release: 16.5.0
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#include "license_server_sdk/external/common/wvpl/wvpl_license_counter.h"
|
||||
#include "license_server_sdk/external/common/wvpl/wvpl_session.h"
|
||||
|
||||
using video_widevine::Session;
|
||||
using video_widevine_server::wv_pl_sdk::HDCP_V1;
|
||||
using video_widevine_server::wv_pl_sdk::HDCP_V2;
|
||||
using video_widevine_server::wv_pl_sdk::kDeviceCertificateExpiration;
|
||||
@@ -53,12 +52,6 @@ const char kValidCertList[] =
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
// The preProvKeys map takes a device systemID as the key and an associated
|
||||
// preprovisioning key as value.
|
||||
std::map<uint32_t, std::string> prev_prov_keys;
|
||||
prev_prov_keys[kSystemId] = kPreProvisioningKey;
|
||||
Session::SetPreProvisioningKeys(prev_prov_keys);
|
||||
|
||||
// -- Set up WvPLEnvironment.
|
||||
|
||||
std::map<std::string, std::string> config;
|
||||
@@ -81,6 +74,12 @@ int main(int argc, char** argv) {
|
||||
return status.error_code();
|
||||
}
|
||||
|
||||
// The preProvKeys map takes a device systemID as the key and an associated
|
||||
// preprovisioning key as value.
|
||||
std::map<uint32_t, std::string> prev_prov_keys;
|
||||
prev_prov_keys[kSystemId] = kPreProvisioningKey;
|
||||
wvpl_env.SetPreProvisioningKeys(prev_prov_keys);
|
||||
|
||||
std::string b64DrmServiceCertificate =
|
||||
"CsMCCAMSENU2hMYAMrDf+"
|
||||
"Z9TlWepj1UY7eXE9gUijgIwggEKAoIBAQCqBNtJ830093pLL7h0daCvCUY7WQ8nrNfyYa5NI"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "license_server_sdk/external/common/wvpl/wvpl_session.h"
|
||||
|
||||
using video_widevine::kDefaultProfileOwnerName;
|
||||
using video_widevine::Session;
|
||||
using video_widevine_server::wv_pl_sdk::HDCP_NONE;
|
||||
using video_widevine_server::wv_pl_sdk::HDCP_V1;
|
||||
using video_widevine_server::wv_pl_sdk::kDeviceCertificateExpiration;
|
||||
@@ -266,12 +265,6 @@ int GenerateLicense(WvPLSession& session, const std::string& content_owner,
|
||||
*/
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
// The preProvKeys map takes a device systemID as the key and an associated
|
||||
// preprovisioning key as value.
|
||||
std::map<uint32_t, std::string> prev_prov_keys;
|
||||
prev_prov_keys[kSystemId] = kPreProvisioningKey;
|
||||
Session::SetPreProvisioningKeys(prev_prov_keys);
|
||||
|
||||
// Set up WvPLEnvironment.
|
||||
std::map<std::string, std::string> config;
|
||||
// Set device certificate expiration time to 10 years (10 * 365 * 24 * 3600).
|
||||
@@ -293,6 +286,12 @@ int main(int argc, char** argv) {
|
||||
return status.error_code();
|
||||
}
|
||||
|
||||
// The preProvKeys map takes a device systemID as the key and an associated
|
||||
// preprovisioning key as value.
|
||||
std::map<uint32_t, std::string> prev_prov_keys;
|
||||
prev_prov_keys[kSystemId] = kPreProvisioningKey;
|
||||
wvpl_env.SetPreProvisioningKeys(prev_prov_keys);
|
||||
|
||||
std::string b64DecodedDrmServiceCertificate;
|
||||
std::string b64DecodedPrivateKey;
|
||||
if (!absl::Base64Unescape(b64DrmServiceCertificate,
|
||||
|
||||
Reference in New Issue
Block a user