Botan
1.11.15
|
#include <x509_ext.h>
Public Member Functions | |
Basic_Constraints (bool ca=false, size_t limit=0) | |
Basic_Constraints * | copy () const |
bool | get_is_ca () const |
size_t | get_path_limit () const |
OID | oid_of () const |
Protected Member Functions | |
virtual bool | should_encode () const |
Friends | |
class | Extensions |
Basic Constraints Extension
Definition at line 89 of file x509_ext.h.
Botan::Cert_Extension::Basic_Constraints::Basic_Constraints | ( | bool | ca = false , |
size_t | limit = 0 |
||
) | [inline] |
Definition at line 95 of file x509_ext.h.
: is_ca(ca), path_limit(limit) {}
Basic_Constraints* Botan::Cert_Extension::Basic_Constraints::copy | ( | ) | const [inline, virtual] |
Make a copy of this extension
Implements Botan::Certificate_Extension.
Definition at line 92 of file x509_ext.h.
{ return new Basic_Constraints(is_ca, path_limit); }
bool Botan::Cert_Extension::Basic_Constraints::get_is_ca | ( | ) | const [inline] |
Definition at line 98 of file x509_ext.h.
{ return is_ca; }
size_t Botan::Cert_Extension::Basic_Constraints::get_path_limit | ( | ) | const |
Definition at line 180 of file x509_ext.cpp.
{ if(!is_ca) throw Invalid_State("Basic_Constraints::get_path_limit: Not a CA"); return path_limit; }
OID Botan::Certificate_Extension::oid_of | ( | ) | const [inherited] |
Definition at line 74 of file x509_ext.cpp.
References Botan::OIDS::lookup(), and Botan::Certificate_Extension::oid_name().
Referenced by Botan::Extensions::encode_into().
{ return OIDS::lookup(oid_name()); }
virtual bool Botan::Certificate_Extension::should_encode | ( | ) | const [inline, protected, virtual, inherited] |
Definition at line 52 of file x509_ext.h.
Referenced by Botan::Extensions::encode_into().
{ return true; }
friend class Extensions [friend, inherited] |
Definition at line 51 of file x509_ext.h.