minimal build
[platform/upstream/gcr.git] / gck / pkcs11-trust-assertions.h
1 /*
2  * pkcs11x.h
3  *  Copyright 2010 Collabora, Ltd
4  *
5  * This file is free software; as a special exception the author gives
6  * unlimited permission to copy and/or distribute it, with or without
7  * modifications, as long as this notice is preserved.
8  *
9  * This file is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY, to the extent permitted by law; without even
11  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  * PURPOSE.
13  */
14
15 /*
16  * The latest version of this file is at:
17  *
18  * git://thewalter.net/git/pkcs11-trust-assertions
19  *
20  * or viewable on the web at:
21  *
22  * http://thewalter.net/git/cgit.cgi/pkcs11-trust-assertions/tree/pkcs11-trust-assertions.h
23  *
24  */
25
26 #ifndef PKCS11_TRUST_ASSERTIONS_H
27 #define PKCS11_TRUST_ASSERTIONS_H
28
29 #include <p11-kit/pkcs11.h>
30
31 #define CKA_XDG   (CKA_VENDOR_DEFINED | 0x58444700UL /* XDG0 */ )
32 #define CKO_XDG   (CKA_VENDOR_DEFINED | 0x58444700UL /* XDG0 */ )
33
34 /* -------------------------------------------------------------------
35  * TRUST ASSERTIONS
36  */
37
38 #define CKO_X_TRUST_ASSERTION                    (CKO_XDG + 100)
39
40 #define CKA_X_ASSERTION_TYPE                     (CKA_XDG + 1)
41
42 #define CKA_X_CERTIFICATE_VALUE                  (CKA_XDG + 2)
43
44 #define CKA_X_PURPOSE                            (CKA_XDG + 3)
45
46 #define CKA_X_PEER                               (CKA_XDG + 4)
47
48 typedef CK_ULONG CK_X_ASSERTION_TYPE;
49
50 #define CKT_X_UNTRUSTED_CERTIFICATE              1UL
51
52 #define CKT_X_PINNED_CERTIFICATE                 2UL
53
54 #define CKT_X_ANCHORED_CERTIFICATE               3UL
55
56 #endif /* PKCS11_TRUST_ASSERTIONS_H */