summaryrefslogtreecommitdiff
path: root/src/lib/trusted_device.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-03 11:17:34 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-03 20:18:04 +0200
commit689fa55d1529ad88449ca464e9107c4dcc54d1cb (patch)
treeedd1264941263f2fa25a98d61f98c87876c5b667 /src/lib/trusted_device.cc
parent0aabe4060ea4bad7c7caac633aef0737fccff8c2 (diff)
C++11 tidying.
Diffstat (limited to 'src/lib/trusted_device.cc')
-rw-r--r--src/lib/trusted_device.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/trusted_device.cc b/src/lib/trusted_device.cc
index 5849b8fd2..8bfbc34f0 100644
--- a/src/lib/trusted_device.cc
+++ b/src/lib/trusted_device.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -18,22 +18,27 @@
*/
+
#include "trusted_device.h"
+
using std::string;
+
TrustedDevice::TrustedDevice (string thumbprint)
: _thumbprint (thumbprint)
{
}
+
TrustedDevice::TrustedDevice (dcp::Certificate certificate)
: _certificate (certificate)
{
}
+
string
TrustedDevice::as_string () const
{
@@ -44,6 +49,7 @@ TrustedDevice::as_string () const
return *_thumbprint;
}
+
string
TrustedDevice::thumbprint () const
{