monotone

monotone Mtn Source Tree

Root/botan/x509_crl.h

1/*************************************************
2* X.509 CRL Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_X509_CRL_H__
7#define BOTAN_X509_CRL_H__
8
9#include <botan/x509_obj.h>
10#include <botan/crl_ent.h>
11#include <vector>
12
13namespace Botan {
14
15/*************************************************
16* X.509 CRL *
17*************************************************/
18class X509_CRL : public X509_Object
19 {
20 public:
21 struct X509_CRL_Error : public Exception
22 {
23 X509_CRL_Error(const std::string& error) :
24 Exception("X509_CRL: " + error) {}
25 };
26
27 std::vector<CRL_Entry> get_revoked() const;
28
29 X509_DN issuer_dn() const;
30 MemoryVector<byte> authority_key_id() const;
31
32 u32bit crl_number() const;
33 X509_Time this_update() const;
34 X509_Time next_update() const;
35
36 void force_decode();
37
38 X509_CRL(DataSource&);
39 X509_CRL(const std::string&);
40 private:
41 void handle_crl_extension(const Extension&);
42 std::vector<CRL_Entry> revoked;
43 MemoryVector<byte> issuer_key_id;
44 X509_Time start, end;
45 X509_DN issuer;
46 u32bit version, crl_count;
47 };
48
49}
50
51#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status