|
|
|
|
@@ -15,13 +15,78 @@ namespace {
|
|
|
|
|
|
|
|
|
|
const std::string kWidevineKeySystem = "com.widevine.alpha";
|
|
|
|
|
|
|
|
|
|
// Content Protection license server (Production) data
|
|
|
|
|
const std::string kCpProductionLicenseServer =
|
|
|
|
|
"https://widevine-proxy.appspot.com/proxy";
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
// Below are two choices for provisioning servers: production and staging.
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// Production Provisioning Server
|
|
|
|
|
const std::string kCpProductionProvisioningServerUrl =
|
|
|
|
|
"https://www.googleapis.com/"
|
|
|
|
|
"certificateprovisioning/v1/devicecertificates/create"
|
|
|
|
|
"?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE";
|
|
|
|
|
// TODO(b/69133499): update to new default cert.
|
|
|
|
|
// NOTE: Provider ID = license.widevine.com
|
|
|
|
|
const std::string kCpProductionProvisioningServiceCertificate =
|
|
|
|
|
"0ac102080312101705b917cc1204868b06333a2f772a8c1882b4829205228e023082010a02"
|
|
|
|
|
"8201010099ed5b3b327dab5e24efc3b62a95b598520ad5bccb37503e0645b814d876b8df40"
|
|
|
|
|
"510441ad8ce3adb11bb88c4e725a5e4a9e0795291d58584023a7e1af0e38a9127939300861"
|
|
|
|
|
"0b6f158c878c7e21bffbfeea77e1019e1e5781e8a45f46263d14e60e8058a8607adce04fac"
|
|
|
|
|
"8457b137a8d67ccdeb33705d983a21fb4eecbd4a10ca47490ca47eaa5d438218ddbaf1cade"
|
|
|
|
|
"3392f13d6ffb6442fd31e1bf40b0c604d1c4ba4c9520a4bf97eebd60929afceef55bbaf564"
|
|
|
|
|
"e2d0e76cd7c55c73a082b996120b8359edce24707082680d6f67c6d82c4ac5f3134490a74e"
|
|
|
|
|
"ec37af4b2f010c59e82843e2582f0b6b9f5db0fc5e6edf64fbd308b4711bcf1250019c9f5a"
|
|
|
|
|
"0902030100013a146c6963656e73652e7769646576696e652e636f6d128003ae347314b5a8"
|
|
|
|
|
"35297f271388fb7bb8cb5277d249823cddd1da30b93339511eb3ccbdea04b944b927c12134"
|
|
|
|
|
"6efdbdeac9d413917e6ec176a10438460a503bc1952b9ba4e4ce0fc4bfc20a9808aaaf4bfc"
|
|
|
|
|
"d19c1dcfcdf574ccac28d1b410416cf9de8804301cbdb334cafcd0d40978423a642e54613d"
|
|
|
|
|
"f0afcf96ca4a9249d855e42b3a703ef1767f6a9bd36d6bf82be76bbf0cba4fde59d2abcc76"
|
|
|
|
|
"feb64247b85c431fbca52266b619fc36979543fca9cbbdbbfafa0e1a55e755a3c7bce655f9"
|
|
|
|
|
"646f582ab9cf70aa08b979f867f63a0b2b7fdb362c5bc4ecd555d85bcaa9c593c383c857d4"
|
|
|
|
|
"9daab77e40b7851ddfd24998808e35b258e75d78eac0ca16f7047304c20d93ede4e8ff1c6f"
|
|
|
|
|
"17e6243e3f3da8fc1709870ec45fba823a263f0cefa1f7093b1909928326333705043a29bd"
|
|
|
|
|
"a6f9b4342cc8df543cb1a1182f7c5fff33f10490faca5b25360b76015e9c5a06ab8ee02f00"
|
|
|
|
|
"d2e8d5986104aacc4dd475fd96ee9ce4e326f21b83c7058577b38732cddabc6a6bed13fb0d"
|
|
|
|
|
"49d38a45eb87a5f4";
|
|
|
|
|
|
|
|
|
|
// Staging Provisioning Server
|
|
|
|
|
const std::string kCpStagingProvisioningServerUrl =
|
|
|
|
|
"https://staging-www.sandbox.googleapis.com/"
|
|
|
|
|
"certificateprovisioning/v1/devicecertificates/create"
|
|
|
|
|
"?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE";
|
|
|
|
|
// TODO(b/69133499): update to new default cert.
|
|
|
|
|
// NOTE: This is currently the same as the Production Service Cert.
|
|
|
|
|
// NOTE: Provider ID = license.widevine.com
|
|
|
|
|
const std::string kCpStagingProvisioningServiceCertificate =
|
|
|
|
|
"0ac102080312101705b917cc1204868b06333a2f772a8c1882b4829205228e023082010a02"
|
|
|
|
|
"8201010099ed5b3b327dab5e24efc3b62a95b598520ad5bccb37503e0645b814d876b8df40"
|
|
|
|
|
"510441ad8ce3adb11bb88c4e725a5e4a9e0795291d58584023a7e1af0e38a9127939300861"
|
|
|
|
|
"0b6f158c878c7e21bffbfeea77e1019e1e5781e8a45f46263d14e60e8058a8607adce04fac"
|
|
|
|
|
"8457b137a8d67ccdeb33705d983a21fb4eecbd4a10ca47490ca47eaa5d438218ddbaf1cade"
|
|
|
|
|
"3392f13d6ffb6442fd31e1bf40b0c604d1c4ba4c9520a4bf97eebd60929afceef55bbaf564"
|
|
|
|
|
"e2d0e76cd7c55c73a082b996120b8359edce24707082680d6f67c6d82c4ac5f3134490a74e"
|
|
|
|
|
"ec37af4b2f010c59e82843e2582f0b6b9f5db0fc5e6edf64fbd308b4711bcf1250019c9f5a"
|
|
|
|
|
"0902030100013a146c6963656e73652e7769646576696e652e636f6d128003ae347314b5a8"
|
|
|
|
|
"35297f271388fb7bb8cb5277d249823cddd1da30b93339511eb3ccbdea04b944b927c12134"
|
|
|
|
|
"6efdbdeac9d413917e6ec176a10438460a503bc1952b9ba4e4ce0fc4bfc20a9808aaaf4bfc"
|
|
|
|
|
"d19c1dcfcdf574ccac28d1b410416cf9de8804301cbdb334cafcd0d40978423a642e54613d"
|
|
|
|
|
"f0afcf96ca4a9249d855e42b3a703ef1767f6a9bd36d6bf82be76bbf0cba4fde59d2abcc76"
|
|
|
|
|
"feb64247b85c431fbca52266b619fc36979543fca9cbbdbbfafa0e1a55e755a3c7bce655f9"
|
|
|
|
|
"646f582ab9cf70aa08b979f867f63a0b2b7fdb362c5bc4ecd555d85bcaa9c593c383c857d4"
|
|
|
|
|
"9daab77e40b7851ddfd24998808e35b258e75d78eac0ca16f7047304c20d93ede4e8ff1c6f"
|
|
|
|
|
"17e6243e3f3da8fc1709870ec45fba823a263f0cefa1f7093b1909928326333705043a29bd"
|
|
|
|
|
"a6f9b4342cc8df543cb1a1182f7c5fff33f10490faca5b25360b76015e9c5a06ab8ee02f00"
|
|
|
|
|
"d2e8d5986104aacc4dd475fd96ee9ce4e326f21b83c7058577b38732cddabc6a6bed13fb0d"
|
|
|
|
|
"49d38a45eb87a5f4";
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
// Below are several choices for licenseing servers: production, UAT, staging
|
|
|
|
|
// and staging and maybe Google Play. We haven't tested with Google Play in a
|
|
|
|
|
// long time.
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// Content Protection license server (Production) data
|
|
|
|
|
const std::string kCpProductionLicenseServer =
|
|
|
|
|
"https://widevine-proxy.appspot.com/proxy";
|
|
|
|
|
// NOTE: Provider ID = staging.google.com
|
|
|
|
|
const std::string kCpProductionServiceCertificate =
|
|
|
|
|
"0ABF020803121028703454C008F63618ADE7443DB6C4C8188BE7F9900522"
|
|
|
|
|
@@ -52,11 +117,6 @@ const std::string kCpProductionServiceCertificate =
|
|
|
|
|
// Content Protection license server (UAT) data
|
|
|
|
|
const std::string kCpUatLicenseServer =
|
|
|
|
|
"https://proxy.uat.widevine.com/proxy";
|
|
|
|
|
// TODO(rfrias): replace when b62880305 is addressed. For now use production URL
|
|
|
|
|
const std::string kCpUatProvisioningServerUrl =
|
|
|
|
|
"https://www.googleapis.com/"
|
|
|
|
|
"certificateprovisioning/v1/devicecertificates/create"
|
|
|
|
|
"?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE";
|
|
|
|
|
// NOTE: Provider ID = staging.google.com
|
|
|
|
|
const std::string kCpUatServiceCertificate =
|
|
|
|
|
"0ABF020803121028703454C008F63618ADE7443DB6C4C8188BE7F9900522"
|
|
|
|
|
@@ -83,6 +143,10 @@ const std::string kCpUatServiceCertificate =
|
|
|
|
|
"383F9C5116D202A20C9229EE969C2519718303B50D0130C3352E06B014D8"
|
|
|
|
|
"38540F8A0C227C0011E0F5B38E4E298ED2CB301EB4564965F55C5D79757A"
|
|
|
|
|
"250A4EB9C84AB3E6539F6B6FDF56899EA29914";
|
|
|
|
|
const std::string kCpUatProvisioningServerUrl =
|
|
|
|
|
kCpProductionProvisioningServerUrl;
|
|
|
|
|
const std::string kCpUatProvisioningServiceCertificate =
|
|
|
|
|
kCpProductionServiceCertificate;
|
|
|
|
|
const std::string kCpClientAuth = "";
|
|
|
|
|
const std::string kCpKeyId =
|
|
|
|
|
"00000042" // blob size
|
|
|
|
|
@@ -107,10 +171,6 @@ const std::string kCpOfflineKeyId =
|
|
|
|
|
// Content Protection license server (staging) data
|
|
|
|
|
const std::string kCpStagingLicenseServer =
|
|
|
|
|
"https://proxy.staging.widevine.com/proxy";
|
|
|
|
|
const std::string kCpStagingProvisioningServerUrl =
|
|
|
|
|
"https://staging-www.sandbox.googleapis.com/"
|
|
|
|
|
"certificateprovisioning/v1/devicecertificates/create"
|
|
|
|
|
"?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE";
|
|
|
|
|
// NOTE: Provider ID = license.widevine.com
|
|
|
|
|
const std::string kCpStagingServiceCertificate =
|
|
|
|
|
"0ac102080312101705b917cc1204868b06333a2f772a8c1882b482920522"
|
|
|
|
|
@@ -197,17 +257,19 @@ const std::string kWrongKeyId =
|
|
|
|
|
|
|
|
|
|
const ConfigTestEnv::LicenseServerConfiguration license_servers[] = {
|
|
|
|
|
{kGooglePlayServer, kGpLicenseServer, "", kGpClientAuth, kGpKeyId,
|
|
|
|
|
kGpOfflineKeyId, kCpProductionProvisioningServerUrl, ""},
|
|
|
|
|
kGpOfflineKeyId, kCpProductionProvisioningServerUrl, ""},
|
|
|
|
|
{kContentProtectionUatServer, kCpUatLicenseServer, kCpUatServiceCertificate,
|
|
|
|
|
kCpClientAuth, kCpKeyId, kCpOfflineKeyId, kCpUatProvisioningServerUrl,
|
|
|
|
|
kCpUatServiceCertificate},
|
|
|
|
|
kCpClientAuth, kCpKeyId, kCpOfflineKeyId,
|
|
|
|
|
// TODO(rfrias): replace when b/62880305 is addressed. For now use production
|
|
|
|
|
kCpProductionProvisioningServerUrl,
|
|
|
|
|
kCpProductionProvisioningServiceCertificate},
|
|
|
|
|
{kContentProtectionStagingServer, kCpStagingLicenseServer,
|
|
|
|
|
kCpStagingServiceCertificate, kCpClientAuth, kCpKeyId, kCpOfflineKeyId,
|
|
|
|
|
kCpStagingProvisioningServerUrl, kCpStagingServiceCertificate},
|
|
|
|
|
kCpStagingServiceCertificate, kCpClientAuth, kCpKeyId, kCpOfflineKeyId,
|
|
|
|
|
kCpStagingProvisioningServerUrl, kCpStagingProvisioningServiceCertificate},
|
|
|
|
|
{kContentProtectionProductionServer, kCpProductionLicenseServer,
|
|
|
|
|
kCpProductionServiceCertificate, kCpClientAuth, kCpKeyId,
|
|
|
|
|
kCpOfflineKeyId, kCpProductionProvisioningServerUrl,
|
|
|
|
|
kCpProductionServiceCertificate},
|
|
|
|
|
kCpProductionServiceCertificate, kCpClientAuth, kCpKeyId, kCpOfflineKeyId,
|
|
|
|
|
kCpProductionProvisioningServerUrl,
|
|
|
|
|
kCpProductionProvisioningServiceCertificate},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|