From 3d77daab7639c06d1cdbeb852559fc4be5671819 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 17 Jul 2014 16:12:56 +0100 Subject: Add variousn new bits to CertificateChain. --- src/certificates.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/certificates.h') diff --git a/src/certificates.h b/src/certificates.h index 5a2b9324..8ae562c9 100644 --- a/src/certificates.h +++ b/src/certificates.h @@ -93,17 +93,24 @@ public: CertificateChain () {} void add (boost::shared_ptr c); + void remove (boost::shared_ptr c); + void remove (int); boost::shared_ptr root () const; boost::shared_ptr leaf () const; - std::list > leaf_to_root () const; + typedef std::list > List; + + List leaf_to_root () const; + List root_to_leaf () const; bool verify () const; + bool attempt_reorder (); private: friend class ::certificates; - std::list > _certificates; + + List _certificates; }; } -- cgit v1.2.3