WvPL License SDK release: 17.0.1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Copyright 2021 Google LLC. All rights reserved.
|
||||
|
||||
#ifndef VIDEO_WIDEVINE_EXPORT_LICENSE_SERVER_SDK_INTERNAL_ENVIRONMENT_IMPL_H_
|
||||
#define VIDEO_WIDEVINE_EXPORT_LICENSE_SERVER_SDK_INTERNAL_ENVIRONMENT_IMPL_H_
|
||||
#ifndef VIDEO_WIDEVINE_EXPORT_SDK_INTERNAL_ENVIRONMENT_IMPL_H_
|
||||
#define VIDEO_WIDEVINE_EXPORT_SDK_INTERNAL_ENVIRONMENT_IMPL_H_
|
||||
|
||||
#include <cstdint>
|
||||
#include <list>
|
||||
@@ -16,13 +16,14 @@
|
||||
#include "common/core_message_util.h"
|
||||
#include "common/security_profile_list.h"
|
||||
#include "common/status.h"
|
||||
#include "license_server_sdk/internal/session_usage_report.h"
|
||||
#include "sdk/internal/session_usage_report.h"
|
||||
#include "common/crypto_util.h"
|
||||
#include "protos/public/client_identification.pb.h"
|
||||
#include "protos/public/device_certificate_status.pb.h"
|
||||
#include "protos/public/license_protocol.pb.h"
|
||||
#include "protos/public/license_server_sdk.pb.h"
|
||||
#include "protos/public/oem_key_container.pb.h"
|
||||
#include "protos/public/provider_key.pb.h"
|
||||
#include "protos/public/provisioned_device_info.pb.h"
|
||||
|
||||
namespace video_widevine {
|
||||
@@ -192,19 +193,36 @@ class EnvironmentImpl {
|
||||
|
||||
// If |auto_set_provider_session_token| is 'true', the provider session token
|
||||
// may be automatically set,
|
||||
// * if the provider session token has not been specified.
|
||||
// * for OFFLINE requests
|
||||
// * if Policy.can_persist is set to 'true'.
|
||||
// * if Policy.can_renew is set to 'true'.
|
||||
// * if OEMCryptoVersion of the client making the request is at least 16.
|
||||
//
|
||||
// The default setting for |auto_set_provider_session_token| is 'true'.
|
||||
virtual void SetAutosetProviderSessionToken(
|
||||
virtual void SetAutoSetProviderSessionToken(
|
||||
bool auto_set_provider_session_token) {
|
||||
auto_set_provider_session_token_ = 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 {
|
||||
return auto_set_provider_session_token_;
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
// Returns the provider key config.
|
||||
virtual const ProviderKeyConfig& GetProviderKeyConfig() const {
|
||||
return provider_key_config_;
|
||||
}
|
||||
|
||||
virtual ~EnvironmentImpl();
|
||||
|
||||
private:
|
||||
@@ -221,7 +239,9 @@ class EnvironmentImpl {
|
||||
const DrmRootCertificate* drm_root_certificate_;
|
||||
mutable absl::Mutex profile_mutex_;
|
||||
SecurityProfileList* profile_list_ ABSL_GUARDED_BY(profile_mutex_);
|
||||
// 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_INTERNAL_ENVIRONMENT_IMPL_H_
|
||||
#endif // VIDEO_WIDEVINE_EXPORT_SDK_INTERNAL_ENVIRONMENT_IMPL_H_
|
||||
|
||||
Reference in New Issue
Block a user