Fix external build issue
This commit is contained in:
@@ -63,14 +63,6 @@ Status ProcessPrivateParameters(const char* const request, uint16_t param_type,
|
||||
params->stream_track_type = std::string(request + *offset, param_length);
|
||||
*offset += param_length;
|
||||
break;
|
||||
case CONTENT_ID:
|
||||
params->content_id = std::string(request + *offset, param_length);
|
||||
*offset += param_length;
|
||||
break;
|
||||
case CONTENT_PROVIDER:
|
||||
params->content_provider = std::string(request + *offset, param_length);
|
||||
*offset += param_length;
|
||||
break;
|
||||
case CONTENT_IV:
|
||||
if (params->content_ivs.size() >= 2) {
|
||||
return Status(error::INVALID_ARGUMENT,
|
||||
@@ -769,12 +761,6 @@ Status EcmgClientHandler::UpdateCommonPrivateParameters(
|
||||
if (!params.track_types.empty()) {
|
||||
track_types_.assign(params.track_types.begin(), params.track_types.end());
|
||||
}
|
||||
if (!params.content_id.empty()) {
|
||||
content_id_ = params.content_id;
|
||||
}
|
||||
if (!params.content_provider.empty()) {
|
||||
content_provider_ = params.content_provider;
|
||||
}
|
||||
if (!params.content_ivs.empty()) {
|
||||
if (params.content_ivs.size() < ecmg_config_->number_of_content_keys) {
|
||||
return {error::INVALID_ARGUMENT,
|
||||
|
||||
@@ -66,8 +66,6 @@ struct EcmgParameters {
|
||||
// Used to request entitlement keys.
|
||||
std::vector<std::string> track_types;
|
||||
std::string stream_track_type;
|
||||
std::string content_id;
|
||||
std::string content_provider;
|
||||
std::vector<std::string> content_ivs; // 8 or 16 bytes, one for each key.
|
||||
std::vector<EntitlementIdKeyComb> entitlement_comb;
|
||||
};
|
||||
@@ -139,8 +137,6 @@ class EcmgClientHandler {
|
||||
uint8_t age_restriction_ = 0;
|
||||
std::vector<std::string> track_types_;
|
||||
std::vector<EntitlementIdKeyComb> entitlement_comb_;
|
||||
std::string content_id_;
|
||||
std::string content_provider_;
|
||||
std::vector<std::string> content_ivs_;
|
||||
|
||||
// Map from ECM_stream_id to EcmgStreamInfo.
|
||||
|
||||
@@ -63,12 +63,10 @@
|
||||
// User defined ECMG parameter type values - 0x8000 to 0xFFFF.
|
||||
#define AGE_RESTRICTION (0x8000)
|
||||
#define CRYPTO_MODE (0x8001)
|
||||
#define CONTENT_ID (0x8002)
|
||||
#define CONTENT_PROVIDER (0x8003)
|
||||
#define TRACK_TYPES (0x8004)
|
||||
#define STREAM_TRACK_TYPE (0x8005)
|
||||
#define CONTENT_IV (0x8006)
|
||||
#define ENTITLEMENT_ID_KEY_COMBINATION (0x8007)
|
||||
#define TRACK_TYPES (0x8002)
|
||||
#define STREAM_TRACK_TYPE (0x8003)
|
||||
#define CONTENT_IV (0x8004)
|
||||
#define ENTITLEMENT_ID_KEY_COMBINATION (0x8005)
|
||||
|
||||
// ECMG protocol error values.
|
||||
#define INVALID_MESSAGE (0x0001)
|
||||
|
||||
@@ -22,6 +22,7 @@ filegroup(
|
||||
name = "binary_release_files",
|
||||
srcs = glob(["*.h"]) + [
|
||||
":wv_ecmg",
|
||||
":wv_emmg",
|
||||
"wv_cas_curl_key_fetcher.cc",
|
||||
"wv_cas_types.cc",
|
||||
],
|
||||
@@ -46,7 +47,6 @@ cc_library(
|
||||
"//base",
|
||||
"@abseil_repo//absl/base:core_headers",
|
||||
"//common:status",
|
||||
"//media_cas_packager_sdk/internal:ecm",
|
||||
"//protos/public:media_cas_cc_proto",
|
||||
"//protos/public:media_cas_encryption_cc_proto",
|
||||
],
|
||||
@@ -116,12 +116,9 @@ cc_test(
|
||||
|
||||
cc_library(
|
||||
name = "wv_cas_key_fetcher",
|
||||
srcs = [
|
||||
"wv_cas_key_fetcher.cc",
|
||||
],
|
||||
hdrs = [
|
||||
"wv_cas_key_fetcher.h",
|
||||
],
|
||||
srcs = ["wv_cas_key_fetcher.cc"],
|
||||
hdrs = ["wv_cas_key_fetcher.h"],
|
||||
copts = PUBLIC_COPTS,
|
||||
deps = [
|
||||
":wv_cas_types",
|
||||
"//base",
|
||||
@@ -131,6 +128,9 @@ cc_library(
|
||||
"//common:status",
|
||||
"//protos/public:media_cas_encryption_cc_proto",
|
||||
],
|
||||
# Make sure libmedia_cas_packager_sdk links in symbols defined in this
|
||||
# target.
|
||||
alwayslink = 1,
|
||||
)
|
||||
|
||||
cc_test(
|
||||
|
||||
Reference in New Issue
Block a user