From c1204f68f6ede72bbaefe853e3ebf6e24b3a9f8b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 5 Jan 2013 23:14:49 +0000 Subject: Add certificate thumbprint method. --- src/certificates.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/certificates.h') diff --git a/src/certificates.h b/src/certificates.h index 1c342acb..0b7127c8 100644 --- a/src/certificates.h +++ b/src/certificates.h @@ -1,3 +1,22 @@ +/* + Copyright (C) 2012 Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + #ifndef LIBDCP_CERTIFICATES_H #define LIBDCP_CERTIFICATES_H @@ -26,6 +45,8 @@ public: std::string serial () const; std::string subject () const; + std::string thumbprint () const; + static std::string name_for_xml (std::string const &); private: -- cgit v1.2.3