monotone

monotone Mtn Source Tree

Root/botan/certstor.h

1/*************************************************
2* Certificate Store Header File *
3* (C) 1999-2007 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_CERT_STORE_H__
7#define BOTAN_CERT_STORE_H__
8
9#include <botan/x509cert.h>
10#include <botan/x509_crl.h>
11
12namespace Botan {
13
14/*************************************************
15* Certificate Store Interface *
16*************************************************/
17class Certificate_Store
18 {
19 public:
20 virtual std::vector<X509_Certificate>
21 by_SKID(const MemoryRegion<byte>&) const = 0;
22
23 virtual std::vector<X509_Certificate> by_name(const std::string&) const;
24 virtual std::vector<X509_Certificate> by_email(const std::string&) const;
25 virtual std::vector<X509_Certificate> by_dn(const X509_DN&) const;
26
27 virtual std::vector<X509_CRL>
28 get_crls_for(const X509_Certificate&) const;
29
30 virtual Certificate_Store* clone() const = 0;
31
32 virtual ~Certificate_Store() {}
33 };
34
35}
36
37#endif

Archive Download this file

Branches

Tags

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