Minimal implementation of Widevine MediaCAS ECMG.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=226515998
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include "base/macros.h"
|
||||
#include "common/status.h"
|
||||
#include "common/certificate_type.h"
|
||||
#include "common/rsa_key.h"
|
||||
#include "common/status.h"
|
||||
|
||||
namespace widevine {
|
||||
class RequestInspectorTest;
|
||||
@@ -48,7 +48,7 @@ class DrmServiceCertificate {
|
||||
// If the default service certificate is not set, this certificate will be
|
||||
// used as the default service certificate.
|
||||
// This method is thread-safe.
|
||||
static util::Status AddDrmServiceCertificate(
|
||||
static Status AddDrmServiceCertificate(
|
||||
const DrmRootCertificate* root_drm_cert,
|
||||
const std::string& service_certificate, const std::string& service_private_key,
|
||||
const std::string& service_private_key_passphrase);
|
||||
@@ -56,7 +56,7 @@ class DrmServiceCertificate {
|
||||
// Same as AddDrmServiceCertificate(), but will clear the default service
|
||||
// certificate if it's set. This will result in this service certificate
|
||||
// being set as the default service certificate.
|
||||
static util::Status SetDefaultDrmServiceCertificate(
|
||||
static Status SetDefaultDrmServiceCertificate(
|
||||
const DrmRootCertificate* root_drm_cert,
|
||||
const std::string& service_certificate, const std::string& service_private_key,
|
||||
const std::string& service_private_key_passphrase);
|
||||
@@ -79,7 +79,7 @@ class DrmServiceCertificate {
|
||||
// certificate which was used to encrypt the information. |client_id| must
|
||||
// not be NULL. Returns status::OK if successful, or an appropriate error
|
||||
// otherwise. This method is thread-safe.
|
||||
static util::Status DecryptClientIdentification(
|
||||
static Status DecryptClientIdentification(
|
||||
const EncryptedClientIdentification& encrypted_client_id,
|
||||
ClientIdentification* client_id);
|
||||
|
||||
@@ -93,18 +93,18 @@ class DrmServiceCertificate {
|
||||
// status::OK if successful, or in case of error, contact
|
||||
// widevine-tam@google.com to get the next valid service certificate renewed
|
||||
// via get deviceCertificate StatusList.
|
||||
static util::Status ValidateDrmServiceCertificate();
|
||||
static Status ValidateDrmServiceCertificate();
|
||||
|
||||
private:
|
||||
friend class DrmServiceCertificateTest;
|
||||
friend class widevine::RequestInspectorTest;
|
||||
|
||||
static util::Status AddDrmServiceCertificate(
|
||||
static Status AddDrmServiceCertificate(
|
||||
const std::string& root_public_key, const std::string& service_certificate,
|
||||
const std::string& service_private_key,
|
||||
const std::string& service_private_key_passphrase);
|
||||
|
||||
static util::Status SetDefaultDrmServiceCertificate(
|
||||
static Status SetDefaultDrmServiceCertificate(
|
||||
const std::string& root_public_key, const std::string& service_certificate,
|
||||
const std::string& service_private_key,
|
||||
const std::string& service_private_key_passphrase);
|
||||
|
||||
Reference in New Issue
Block a user