diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-30 00:28:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-06 20:36:02 +0200 |
| commit | c4e10c9a007345cca8594d7bfd23138d56e21d5e (patch) | |
| tree | 7ae58f6db433850666c6d2a70f112666ceea23a9 /src/lib/screen.cc | |
| parent | bcb5a3f8bc060240db5573ded03e1a0521977207 (diff) | |
Move TrustedDevice to its own source files.
Diffstat (limited to 'src/lib/screen.cc')
| -rw-r--r-- | src/lib/screen.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/screen.cc b/src/lib/screen.cc index 632370810..c4bcb41c7 100644 --- a/src/lib/screen.cc +++ b/src/lib/screen.cc @@ -77,38 +77,6 @@ Screen::trusted_device_thumbprints () const return t; } -TrustedDevice::TrustedDevice (string thumbprint) - : _thumbprint (thumbprint) -{ - -} - -TrustedDevice::TrustedDevice (dcp::Certificate certificate) - : _certificate (certificate) -{ - -} - -string -TrustedDevice::as_string () const -{ - if (_certificate) { - return _certificate->certificate(true); - } - - return *_thumbprint; -} - -string -TrustedDevice::thumbprint () const -{ - if (_certificate) { - return _certificate->thumbprint (); - } - - return *_thumbprint; -} - KDMWithMetadataPtr kdm_for_screen ( |
