summaryrefslogtreecommitdiff
path: root/src/certificates.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-18 00:15:34 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-18 00:15:34 +0100
commit56e7a6f1768036df852a45d939b9adc038b17057 (patch)
tree93cf6bb1fb7c9ebe43de09d7690e69cd75b634ea /src/certificates.h
parent0b85b9216da9d6519a553de67103a9417504aba1 (diff)
Quite large reworking of signer/cert handling.
Diffstat (limited to 'src/certificates.h')
-rw-r--r--src/certificates.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/certificates.h b/src/certificates.h
index 8ae562c9..06ce92a9 100644
--- a/src/certificates.h
+++ b/src/certificates.h
@@ -92,19 +92,19 @@ class CertificateChain
public:
CertificateChain () {}
- void add (boost::shared_ptr<Certificate> c);
- void remove (boost::shared_ptr<Certificate> c);
+ void add (boost::shared_ptr<const Certificate> c);
+ void remove (boost::shared_ptr<const Certificate> c);
void remove (int);
- boost::shared_ptr<Certificate> root () const;
- boost::shared_ptr<Certificate> leaf () const;
+ boost::shared_ptr<const Certificate> root () const;
+ boost::shared_ptr<const Certificate> leaf () const;
- typedef std::list<boost::shared_ptr<Certificate> > List;
+ typedef std::list<boost::shared_ptr<const Certificate> > List;
List leaf_to_root () const;
List root_to_leaf () const;
- bool verify () const;
+ bool valid () const;
bool attempt_reorder ();
private: