diff options
author | lloyd <[email protected]> | 2012-02-06 14:12:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-02-06 14:12:35 +0000 |
commit | cd58927000ef86eacc9de5b80f361d4d05e71731 (patch) | |
tree | 975d2e50e77567d14ea3d24e6ebaf24a9e4d7c3b /src/cert/x509cert/x509cert.h | |
parent | 03bc906a6a94d236f192fa3b1bb370c013fc753a (diff) |
Fully working path validation. Even fixes the cases in PKITS where we
got the answer wrong before. Still no policy or name constraints
support, though.
Diffstat (limited to 'src/cert/x509cert/x509cert.h')
-rw-r--r-- | src/cert/x509cert/x509cert.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cert/x509cert/x509cert.h b/src/cert/x509cert/x509cert.h index 8798ef1c2..d25b97694 100644 --- a/src/cert/x509cert/x509cert.h +++ b/src/cert/x509cert/x509cert.h @@ -23,10 +23,10 @@ namespace Botan { class BOTAN_DLL X509_Certificate : public X509_Object { public: - /** - * Get the public key associated with this certificate. - * @return subject public key of this certificate - */ + /** + * Get the public key associated with this certificate. + * @return subject public key of this certificate + */ Public_Key* subject_public_key() const; /** @@ -111,6 +111,8 @@ class BOTAN_DLL X509_Certificate : public X509_Object */ bool is_CA_cert() const; + bool allowed_usage(Key_Constraints restriction) const; + /** * Get the path limit as defined in the BasicConstraints extension of * this certificate. |