X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ftrusted_device.cc;h=8bfbc34f066e18abf32eb3a7e8a10fef55eb4087;hp=5849b8fd22f7d400e1336fa695f823403a119743;hb=ac34066d5e448d1984d11a180be74e31b6e13b5c;hpb=47e29203daec51d313ed8ab8ef759752bce18d45 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 + Copyright (C) 2013-2021 Carl Hetherington 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 {