Refactor and cleanup codes. No functional changes.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright 2016 Google Inc.
|
||||
// Copyright 2016 Google LLC.
|
||||
//
|
||||
// This software is licensed under the terms defined in the Widevine Master
|
||||
// License Agreement. For a copy of this agreement, please contact
|
||||
@@ -21,12 +21,13 @@
|
||||
DEFINE_string(service_public_key_path, "example_data/service.public",
|
||||
"Indicates the file path to service public key. If omitted, the "
|
||||
"token is not encrypted.");
|
||||
DEFINE_string(
|
||||
certificate_path, "",
|
||||
"Indicates the file path to the certificate chain. Should not be empty.");
|
||||
DEFINE_string(certificate_private_key_path, "",
|
||||
"Indicaets the file path to the certificate private key. Should "
|
||||
DEFINE_string(certificate_path, "",
|
||||
"Indicates the file path to the OEM certificate chain. Should "
|
||||
"not be empty.");
|
||||
DEFINE_string(
|
||||
certificate_private_key_path, "",
|
||||
"Indicates the file path to the OEM certificate private key. Should "
|
||||
"not be empty.");
|
||||
DEFINE_string(
|
||||
output_path, "",
|
||||
"Specifies where to write the output message. Should not be empty.");
|
||||
@@ -71,9 +72,9 @@ bool GenerateProvisioningMessage(const std::string& service_public_key,
|
||||
|
||||
} // namespace widevine
|
||||
|
||||
using widevine::GenerateProvisioningMessage;
|
||||
using widevine::GetContents;
|
||||
using widevine::SetContents;
|
||||
using widevine::GenerateProvisioningMessage;
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
|
||||
Reference in New Issue
Block a user