diff options
author | Stef Walter <stef@thewalter.net> | 2010-12-12 14:04:45 +0000 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2013-01-02 09:04:07 +0100 |
commit | 497fe80080cca7e535997b7d22dde2e4727d185f (patch) | |
tree | 91ff747af8ccb8a6e0d922277276e6678f6bf893 | |
parent | 48113a54d7bfbb0734546b9e13fc43fa02a63931 (diff) |
Add the trust assertions PKCS#11 header.
-rw-r--r-- | specs/pkcs11-trust-assertions.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/specs/pkcs11-trust-assertions.h b/specs/pkcs11-trust-assertions.h new file mode 100644 index 0000000..365e799 --- /dev/null +++ b/specs/pkcs11-trust-assertions.h @@ -0,0 +1,44 @@ +/* pkcs11x.h + Copyright 2010 Collabora Ltd + + This file is free software; as a special exception the author gives + unlimited permission to copy and/or distribute it, with or without + modifications, as long as this notice is preserved. + + This file is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY, to the extent permitted by law; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. */ + + +#ifndef PKCS11X_H +#define PKCS11X_H + +#include "pkcs11.h" + +#define CKA_XDG (CKA_VENDOR_DEFINED | 0x58444700UL /* XDG0 */ ) +#define CKO_XDG (CKA_VENDOR_DEFINED | 0x58444700UL /* XDG0 */ ) + +/* ------------------------------------------------------------------- + * TRUST ASSERTIONS + */ + +#define CKO_X_TRUST_ASSERTION (CKO_XDG + 100) + +#define CKA_X_ASSERTION_TYPE (CKA_XDG + 1) + +#define CKA_X_CERTIFICATE_VALUE (CKA_XDG + 2) + +#define CKA_X_PURPOSE (CKA_XDG + 3) + +#define CKA_X_PEER (CKA_XDG + 4) + +typedef CK_ULONG CK_X_ASSERTION_TYPE; + +#define CKT_X_UNTRUSTED_CERTIFICATE 1UL + +#define CKT_X_PINNED_CERTIFICATE 2UL + +#define CKT_X_ANCHORED_CERTIFICATE 3UL + +#endif /* PKCS11X_H */ |