summaryrefslogtreecommitdiff
path: root/src/certificates.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-17 16:12:56 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-17 16:12:56 +0100
commit3d77daab7639c06d1cdbeb852559fc4be5671819 (patch)
tree1bbe412ad4107a4b3dde663eb6397079c65de465 /src/certificates.h
parente21bb3e3c2cf5d0d971f1a5cf25da431fcde0409 (diff)
Add variousn new bits to CertificateChain.
Diffstat (limited to 'src/certificates.h')
-rw-r--r--src/certificates.h11
1 files changed, 9 insertions, 2 deletions
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<Certificate> c);
+ void remove (boost::shared_ptr<Certificate> c);
+ void remove (int);
boost::shared_ptr<Certificate> root () const;
boost::shared_ptr<Certificate> leaf () const;
- std::list<boost::shared_ptr<Certificate> > leaf_to_root () const;
+ typedef std::list<boost::shared_ptr<Certificate> > List;
+
+ List leaf_to_root () const;
+ List root_to_leaf () const;
bool verify () const;
+ bool attempt_reorder ();
private:
friend class ::certificates;
- std::list<boost::shared_ptr<Certificate> > _certificates;
+
+ List _certificates;
};
}