monotone

monotone Mtn Source Tree

Root/botan/pkcs10.h

1/*************************************************
2* PKCS #10 Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_PKCS10_H__
7#define BOTAN_PKCS10_H__
8
9#include <botan/x509_obj.h>
10#include <botan/pkcs8.h>
11#include <vector>
12
13namespace Botan {
14
15/*************************************************
16* PKCS #10 Certificate Request *
17*************************************************/
18class PKCS10_Request : public X509_Object
19 {
20 public:
21 X509_PublicKey* subject_public_key() const;
22
23 MemoryVector<byte> raw_public_key() const;
24 X509_DN subject_dn() const;
25 AlternativeName subject_alt_name() const;
26 Key_Constraints constraints() const;
27 std::vector<OID> ex_constraints() const;
28
29 bool is_CA() const;
30 u32bit path_limit() const;
31
32 std::string challenge_password() const;
33
34 PKCS10_Request(DataSource&);
35 PKCS10_Request(const std::string&);
36 private:
37 void force_decode();
38 void handle_attribute(const Attribute&);
39 void handle_v3_extension(const Extension&);
40
41 MemoryVector<byte> pub_key;
42 X509_DN dn;
43 AlternativeName subject_alt;
44 std::string challenge;
45 Key_Constraints constraints_value;
46 std::vector<OID> ex_constraints_list;
47 bool is_ca;
48 u32bit max_path_len;
49 };
50
51}
52
53#endif

Archive Download this file

Branches

Tags

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