monotone

monotone Mtn Source Tree

Root/botan/x509_crl.h

1/*************************************************
2* X.509 CRL Header File *
3* (C) 1999-2007 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 X509_CRL(DataSource&);
37 X509_CRL(const std::string&);
38 private:
39 void force_decode();
40 std::vector<CRL_Entry> revoked;
41 Data_Store info;
42 };
43
44}
45
46#endif

Archive Download this file

Branches

Tags

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