WvPL License SDK release: 17.0.1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Copyright 2020 Google LLC. All rights reserved.
|
||||
|
||||
#ifndef VIDEO_WIDEVINE_EXPORT_LICENSE_SERVER_SDK_PUBLIC_ENVIRONMENT_H_
|
||||
#define VIDEO_WIDEVINE_EXPORT_LICENSE_SERVER_SDK_PUBLIC_ENVIRONMENT_H_
|
||||
#ifndef VIDEO_WIDEVINE_EXPORT_SDK_EXTERNAL_CPP_WVDRM_LICENSE_SERVER_SDK_ENVIRONMENT_H_
|
||||
#define VIDEO_WIDEVINE_EXPORT_SDK_EXTERNAL_CPP_WVDRM_LICENSE_SERVER_SDK_ENVIRONMENT_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
#include "common/drm_root_certificate.h"
|
||||
#include "common/security_profile_list.h"
|
||||
#include "common/status.h"
|
||||
#include "license_server_sdk/internal/environment_impl.h"
|
||||
#include "license_server_sdk/public/session.h"
|
||||
#include "sdk/external/cpp/wvdrm/license_server_sdk/session.h"
|
||||
#include "sdk/internal/environment_impl.h"
|
||||
|
||||
namespace video_widevine {
|
||||
|
||||
@@ -47,6 +47,11 @@ class Environment {
|
||||
void SetDevicesToHandleOEMCryptoVersionInKCB(
|
||||
const std::string& system_id_list);
|
||||
|
||||
// Set pre-provisioning keys system-wide. Map key is system_id, value.
|
||||
// Value should be human-readable hex digits encoded bytes, e.g.
|
||||
// 'preProvKeys.put(100, "f7008b38acc00ec68c732ac665c55c65")'. Must be called
|
||||
// before any other calls to this class. Calls are thread-safe, so the keys
|
||||
// can be updated at any time.
|
||||
void SetPreProvisioningKeys(const std::map<uint32_t, std::string>& keys);
|
||||
|
||||
void SetPreProvisioningKeys(const std::multimap<uint32_t, std::string>& keys);
|
||||
@@ -222,14 +227,22 @@ class Environment {
|
||||
// may be automatically set,
|
||||
//
|
||||
// The default setting for |auto_set_provider_session_token| is 'true'.
|
||||
virtual void SetAutosetProviderSessionToken(
|
||||
virtual void SetAutoSetProviderSessionToken(
|
||||
bool auto_set_provider_session_token);
|
||||
|
||||
// Returns the setting as to whether the provider session token will be
|
||||
// automatically set.
|
||||
virtual bool GetAutosetProviderSessionToken() const;
|
||||
virtual bool GetAutoSetProviderSessionToken() const;
|
||||
|
||||
// Set the provider key used for L3 CDM.
|
||||
// |provider_key_config_bytes| is a serialized ProviderKeyConfig proto
|
||||
// message. Return OK if parsing is successful, otherwise an error is
|
||||
// returned.
|
||||
virtual Status SetProviderKeyConfig(
|
||||
const std::string& provider_key_config_bytes);
|
||||
|
||||
private:
|
||||
friend class EnvironmentTest;
|
||||
// Environment::CreateSession which also fills in the parsed
|
||||
// ExternalLicenseRequest. Used to create a Session object.
|
||||
Status CreateSession(SignedMessage* signed_message, Session** session,
|
||||
@@ -239,8 +252,9 @@ class Environment {
|
||||
std::unique_ptr<video_widevine::SecurityProfileList>
|
||||
device_security_profile_list_;
|
||||
std::shared_ptr<EnvironmentImpl> env_impl_;
|
||||
friend class EnvironmentTest;
|
||||
// Provider key configuration assigned to a provider for use with L3 CDM.
|
||||
ProviderKeyConfig provider_key_config_;
|
||||
};
|
||||
} // namespace video_widevine
|
||||
|
||||
#endif // VIDEO_WIDEVINE_EXPORT_LICENSE_SERVER_SDK_PUBLIC_ENVIRONMENT_H_
|
||||
#endif // VIDEO_WIDEVINE_EXPORT_SDK_EXTERNAL_CPP_WVDRM_LICENSE_SERVER_SDK_ENVIRONMENT_H_
|
||||
|
||||
Reference in New Issue
Block a user