aboutsummaryrefslogtreecommitdiffstats
path: root/include/x509cert.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-05-19 00:07:25 +0000
committerlloyd <[email protected]>2006-05-19 00:07:25 +0000
commitf090e030be53e574fecbe7cf50edfb5fdacb53e1 (patch)
tree0bff0c249a9dbcb674fcd2491ab17e3d123ef1f9 /include/x509cert.h
parenta0af7b26591f8fb79d1f06fe42548e1eb0c35e90 (diff)
Syntax changes to the BER and DER APIs to improve readability of code
that uses them. These changes are not backwards compatible, this commit updates all uses of the APIs within the library.
Diffstat (limited to 'include/x509cert.h')
-rw-r--r--include/x509cert.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/x509cert.h b/include/x509cert.h
index 60534c769..0a6d0ec83 100644
--- a/include/x509cert.h
+++ b/include/x509cert.h
@@ -13,7 +13,7 @@
namespace Botan {
-static const u32bit NO_CERT_PATH_LIMIT = 0xFFFFFFFF;
+static const u32bit NO_CERT_PATH_LIMIT = 0xFFFFFFF0;
/*************************************************
* X.509 Certificate *
@@ -23,36 +23,36 @@ class X509_Certificate : public X509_Object
public:
X509_PublicKey* subject_public_key() const;
- u32bit x509_version() const;
- MemoryVector<byte> serial_number() const;
- MemoryVector<byte> authority_key_id() const;
- MemoryVector<byte> subject_key_id() const;
- Key_Constraints constraints() const;
+ X509_DN issuer_dn() const;
+ X509_DN subject_dn() const;
+ std::string subject_info(const std::string&) const;
+ std::string issuer_info(const std::string&) const;
std::string start_time() const;
std::string end_time() const;
- std::string subject_info(const std::string&) const;
- std::string issuer_info(const std::string&) const;
- X509_DN issuer_dn() const;
- X509_DN subject_dn() const;
+ u32bit x509_version() const;
+ MemoryVector<byte> serial_number() const;
+ MemoryVector<byte> authority_key_id() const;
+ MemoryVector<byte> subject_key_id() const;
bool self_signed() const;
bool is_CA_cert() const;
u32bit path_limit() const;
+ Key_Constraints constraints() const;
std::vector<std::string> ex_constraints() const;
std::vector<std::string> policies() const;
bool operator==(const X509_Certificate&) const;
- void force_decode();
-
X509_Certificate(DataSource&);
X509_Certificate(const std::string&);
private:
friend class X509_CA;
X509_Certificate() {}
+ void force_decode();
+
void handle_v3_extension(const Extension&);
Data_Store info;