summaryrefslogtreecommitdiff
path: root/tools/dcpkdm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dcpkdm.cc')
-rw-r--r--tools/dcpkdm.cc17
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/dcpkdm.cc b/tools/dcpkdm.cc
index a3e099ba..20b07ebc 100644
--- a/tools/dcpkdm.cc
+++ b/tools/dcpkdm.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2017-2019 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2017-2021 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -31,18 +31,21 @@
files in the program, then also delete it here.
*/
-#include "encrypted_kdm.h"
+
+#include "certificate_chain.h"
#include "decrypted_kdm.h"
-#include "util.h"
+#include "encrypted_kdm.h"
#include "exceptions.h"
-#include "certificate_chain.h"
+#include "util.h"
#include <getopt.h>
-using std::string;
-using std::cout;
+
using std::cerr;
+using std::cout;
+using std::string;
using boost::optional;
+
static void
help (string n)
{
@@ -51,6 +54,7 @@ help (string n)
<< " -p, --private-key private key file\n";
}
+
static string
tm_to_string (struct tm t)
{
@@ -59,6 +63,7 @@ tm_to_string (struct tm t)
return buffer;
}
+
int
main (int argc, char* argv[])
try