Merge Widevine CDM-Side Core Changes
This is a combined merge of several small changes to the core in the Widevine CDM repository: http://go/wvgerrit/10941 Rename privacy_crypto to allow more variants. http://go/wvgerrit/11530 Add Missing Header to properties.h http://go/wvgerrit/11531 More Loosely Couple CdmEngine and CdmSession Change-Id: I5b3f738ae495ab267da1440421dd7aa6f7860194
This commit is contained in:
@@ -31,7 +31,7 @@ LOCAL_SRC_FILES := \
|
|||||||
$(CORE_SRC_DIR)/max_res_engine.cpp \
|
$(CORE_SRC_DIR)/max_res_engine.cpp \
|
||||||
$(CORE_SRC_DIR)/oemcrypto_adapter_dynamic.cpp \
|
$(CORE_SRC_DIR)/oemcrypto_adapter_dynamic.cpp \
|
||||||
$(CORE_SRC_DIR)/policy_engine.cpp \
|
$(CORE_SRC_DIR)/policy_engine.cpp \
|
||||||
$(CORE_SRC_DIR)/privacy_crypto.cpp \
|
$(CORE_SRC_DIR)/privacy_crypto_openssl.cpp \
|
||||||
$(SRC_DIR)/wv_content_decryption_module.cpp
|
$(SRC_DIR)/wv_content_decryption_module.cpp
|
||||||
|
|
||||||
LOCAL_MODULE := libcdm
|
LOCAL_MODULE := libcdm
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "cdm_session.h"
|
|
||||||
#include "certificate_provisioning.h"
|
#include "certificate_provisioning.h"
|
||||||
#include "crypto_session.h"
|
#include "crypto_session.h"
|
||||||
#include "initialization_data.h"
|
#include "initialization_data.h"
|
||||||
@@ -17,6 +16,7 @@
|
|||||||
namespace wvcdm {
|
namespace wvcdm {
|
||||||
|
|
||||||
class CdmClientPropertySet;
|
class CdmClientPropertySet;
|
||||||
|
class CdmSession;
|
||||||
class CryptoEngine;
|
class CryptoEngine;
|
||||||
class UsagePropertySet;
|
class UsagePropertySet;
|
||||||
class WvCdmEventListener;
|
class WvCdmEventListener;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class RsaPublicKey {
|
|||||||
bool Encrypt(const std::string& plaintext,
|
bool Encrypt(const std::string& plaintext,
|
||||||
std::string* ciphertext);
|
std::string* ciphertext);
|
||||||
|
|
||||||
// Verify RSSASSA-PSS signature. Caller retains ownership of all parameters.
|
// Verify RSASSA-PSS signature. Caller retains ownership of all parameters.
|
||||||
// Returns true if validation succeeds, false otherwise.
|
// Returns true if validation succeeds, false otherwise.
|
||||||
bool VerifySignature(const std::string& message,
|
bool VerifySignature(const std::string& message,
|
||||||
const std::string& signature);
|
const std::string& signature);
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
#include "scoped_ptr.h"
|
#include "scoped_ptr.h"
|
||||||
#include "wv_cdm_types.h"
|
#include "wv_cdm_types.h"
|
||||||
|
|
||||||
|
#if defined(UNIT_TEST)
|
||||||
|
# include "gtest/gtest_prod.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace wvcdm {
|
namespace wvcdm {
|
||||||
|
|
||||||
typedef std::map<CdmSessionId, const CdmClientPropertySet*>
|
typedef std::map<CdmSessionId, const CdmClientPropertySet*>
|
||||||
|
|||||||
Reference in New Issue
Block a user