libcamgm
CommonData.hpp
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | |
3 | _ _ _ _ __ _ |
4 | | | | | | \_/ | / \ | | |
5 | | | | | | |_| | / /\ \ | | |
6 | | |__ | | | | | | / ____ \ | |__ |
7 | |____||_| |_| |_|/ / \ \|____| |
8 | |
9 | ca-mgm library |
10 | |
11 | (C) SUSE Linux Products GmbH |
12 \----------------------------------------------------------------------/
13 
14  File: CommonData.hpp
15 
16  Author: <Michael Calmer> <mc@suse.de>
17  Maintainer: <Michael Calmer> <mc@suse.de>
18 
19  Purpose:
20 
21 /-*/
22 #ifndef CA_MGM_COMMON_DATA_HPP
23 #define CA_MGM_COMMON_DATA_HPP
24 
25 
26 #include <ca-mgm/String.hpp>
27 #include <list>
28 #include <vector>
29 #include <map>
30 #include <errno.h>
31 #include <stdint.h>
32 
33 #define REPOSITORY "/var/lib/CAM/"
34 
35 namespace CA_MGM_NAMESPACE {
36 
37  typedef std::list<std::string> StringList;
38 
39  enum Type {
47  };
48 
49  enum FormatType {
52  };
53 
54  enum KeyAlg {
58  };
59 
60  enum SigAlg {
68  };
69 
70  enum MD {
78  };
79 
81  {
82  E_GENERIC = -1,
83  E_C_EMPTY = -100, // value empty
84  E_ST_EMPTY = -101,
85  E_L_EMPTY = -102,
86  E_O_EMPTY = -103,
87  E_OU_EMPTY = -104,
88  E_CN_EMPTY = -105,
89  E_EM_EMPTY = -106,
90  E_C_NF = -110, // value not found
91  E_ST_NF = -111,
92  E_L_NF = -112,
93  E_O_NF = -113,
94  E_OU_NF = -114,
95  E_CN_NF = -115,
96  E_EM_NF = -116,
97  E_C_NM = -120, // (no match) value does not match CA
98  E_ST_NM = -121,
99  E_L_NM = -122,
100  E_O_NM = -123,
101  E_OU_NM = -124,
102  E_CN_NM = -125,
103  E_EM_NM = -126,
104  E_INVALID_PASSWD = -200, // invalid password
105  E_FILE_NOT_FOUND = ENOENT, //errno
106  E_FILE_EXISTS = EEXIST //errno
107  };
108 }
109 
110 #endif // CA_MGM_COMMON_DATA_HPP
CA Certificate.
Definition: CommonData.hpp:46
Definition: CommonData.hpp:90
Definition: CommonData.hpp:62
Definition: CommonData.hpp:74
Definition: CommonData.hpp:91
Definition: CommonData.hpp:40
Definition: CommonData.hpp:100
Definition: CommonData.hpp:88
Definition: CommonData.hpp:55
Definition: CommonData.hpp:85
Definition: CommonData.hpp:73
Definition: CommonData.hpp:102
Definition: CommonData.hpp:99
Definition: CommonData.hpp:89
std::list< std::string > StringList
Definition: CommonData.hpp:37
Definition: CommonData.hpp:51
Definition: CommonData.hpp:101
Definition: CommonData.hpp:94
Client Request.
Definition: CommonData.hpp:41
Definition: CommonData.hpp:50
Definition: CommonData.hpp:64
Definition: CommonData.hpp:82
Definition: CommonData.hpp:72
Definition: CommonData.hpp:77
Definition: CommonData.hpp:92
Server Request.
Definition: CommonData.hpp:42
EErrorCodes
Definition: CommonData.hpp:80
MD
Definition: CommonData.hpp:70
FormatType
Definition: CommonData.hpp:49
SigAlg
Definition: CommonData.hpp:60
Definition: CommonData.hpp:76
Definition: CommonData.hpp:93
Definition: CommonData.hpp:96
KeyAlg
Definition: CommonData.hpp:54
Type
Definition: CommonData.hpp:39
Definition: CommonData.hpp:86
Definition: CommonData.hpp:103
Definition: CommonData.hpp:57
Definition: CommonData.hpp:97
Definition: CommonData.hpp:95
Definition: CommonData.hpp:104
Server Certificate.
Definition: CommonData.hpp:45
Definition: CommonData.hpp:63
Definition: CommonData.hpp:87
Definition: CommonData.hpp:56
Definition: CommonData.hpp:105
Definition: CommonData.hpp:67
Definition: CommonData.hpp:66
CA Request.
Definition: CommonData.hpp:43
Definition: CommonData.hpp:71
Client Certificate.
Definition: CommonData.hpp:44
Definition: CommonData.hpp:75
Definition: CommonData.hpp:83
Definition: CommonData.hpp:65
Definition: CommonData.hpp:84
Definition: CommonData.hpp:98
Definition: CommonData.hpp:106
Definition: CommonData.hpp:61