Release provisioning sdk 8d17e45

This commit is contained in:
Widevine Buildbot
2017-01-25 04:14:05 +00:00
parent 71066f540d
commit c8e69f1ced
42 changed files with 300 additions and 70 deletions

View File

@@ -1,3 +1,11 @@
////////////////////////////////////////////////////////////////////////////////
// Copyright 2016 Google Inc.
//
// This software is licensed under the terms defined in the Widevine Master
// License Agreement. For a copy of this agreement, please contact
// widevine-licensing@google.com.
////////////////////////////////////////////////////////////////////////////////
#include <stddef.h>
#include <stdio.h>
#include <iostream>
@@ -12,7 +20,7 @@
using widevine::OK;
using widevine::ProvisioningEngine;
using widevine::ProvisioningSession;
using widevine::kCertDevelopment;
using widevine::kCertTesting;
std::string GetContents(const std::string& file_name) {
if (file_name.empty()) {
@@ -42,12 +50,13 @@ int main(int argc, char** argv) {
// Call Initialize to setup the engine.
if (engine.Initialize(
kCertDevelopment, GetContents("example_data/service.cert"),
kCertTesting, GetContents("example_data/service.cert"),
GetContents("example_data/service.encrypted.private"),
GetContents("example_data/service.passphrase"),
GetContents("example_data/provider.cert"),
GetContents("example_data/provider.encrypted.private"),
GetContents("example_data/provider.passphrase")) != OK) {
GetContents("example_data/provisioner.cert"),
GetContents("example_data/provisioner.encrypted.private"),
GetContents("example_data/provisioner.passphrase"),
GetContents("example_data/provisioner.spoid_secret")) != OK) {
std::cout << "Failed to initialize." << std::endl;
return 1;
}