X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fcertificate_chain.h;h=9d7ab47c1cf6e676f374a2a78b626ceaaec5dc08;hb=refs%2Fheads%2F1.0-templates;hp=046f28451b1567e3e1322c3476ca526df0be0901;hpb=d1f0b2b71a702b5624485cfeacaee5d58c4af5b2;p=libdcp.git diff --git a/src/certificate_chain.h b/src/certificate_chain.h index 046f2845..9d7ab47c 100644 --- a/src/certificate_chain.h +++ b/src/certificate_chain.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2016 Carl Hetherington This file is part of libdcp. @@ -15,6 +15,20 @@ You should have received a copy of the GNU General Public License along with libdcp. If not, see . + + In addition, as a special exception, the copyright holders give + permission to link the code of portions of this program with the + OpenSSL library under certain conditions as described in each + individual source file, and distribute linked combinations + including the two. + + You must obey the GNU General Public License in all respects + for all of the code used other than OpenSSL. If you modify + file(s) with this exception, you may extend this exception to your + version of the file(s), but you are not obligated to do so. If you + do not wish to do so, delete this exception statement from your + version. If you delete this exception statement from all source + files in the program, then also delete it here. */ /** @file src/signer_chain.h @@ -60,6 +74,8 @@ public: std::string leaf_common_name = "CS.smpte-430-2.LEAF.NOT_FOR_PRODUCTION" ); + explicit CertificateChain (std::string); + void add (Certificate c); void remove (Certificate c); void remove (int); @@ -86,6 +102,8 @@ public: _key = k; } + std::string chain () const; + private: friend class ::certificates;