diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-01 22:34:24 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-01 22:34:24 +0000 |
| commit | 039ea029c811b7f74f02befad10d2106ad645e74 (patch) | |
| tree | 2110ed03991ce650b6acc335492f9a008ac6eb93 /src/certificates.cc | |
| parent | 3adf49eea65c2c015ae0b5bc7f066a599faf3933 (diff) | |
A few more untested bits.
Diffstat (limited to 'src/certificates.cc')
| -rw-r--r-- | src/certificates.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/certificates.cc b/src/certificates.cc index c1e71b14..fe03f10e 100644 --- a/src/certificates.cc +++ b/src/certificates.cc @@ -118,3 +118,11 @@ CertificateChain::leaf () const assert (_certificates.size() >= 2); return _certificates.back (); } + +list<shared_ptr<Certificate> > +CertificateChain::leaf_to_root () const +{ + list<shared_ptr<Certificate> > c = _certificates; + c.reverse (); + return c; +} |
