/*
- 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.
*/
+
#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
{
return *_thumbprint;
}
+
string
TrustedDevice::thumbprint () const
{