3 * Copyright 2010 Collabora, Ltd
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.
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
16 * The latest version of this file is at:
18 * git://thewalter.net/git/pkcs11-trust-assertions
20 * or viewable on the web at:
22 * http://thewalter.net/git/cgit.cgi/pkcs11-trust-assertions/tree/pkcs11-trust-assertions.h
26 #ifndef PKCS11_TRUST_ASSERTIONS_H
27 #define PKCS11_TRUST_ASSERTIONS_H
29 #include <p11-kit/pkcs11.h>
31 #define CKA_XDG (CKA_VENDOR_DEFINED | 0x58444700UL /* XDG0 */ )
32 #define CKO_XDG (CKA_VENDOR_DEFINED | 0x58444700UL /* XDG0 */ )
34 /* -------------------------------------------------------------------
38 #define CKO_X_TRUST_ASSERTION (CKO_XDG + 100)
40 #define CKA_X_ASSERTION_TYPE (CKA_XDG + 1)
42 #define CKA_X_CERTIFICATE_VALUE (CKA_XDG + 2)
44 #define CKA_X_PURPOSE (CKA_XDG + 3)
46 #define CKA_X_PEER (CKA_XDG + 4)
48 typedef CK_ULONG CK_X_ASSERTION_TYPE;
50 #define CKT_X_UNTRUSTED_CERTIFICATE 1UL
52 #define CKT_X_PINNED_CERTIFICATE 2UL
54 #define CKT_X_ANCHORED_CERTIFICATE 3UL
56 #endif /* PKCS11_TRUST_ASSERTIONS_H */