diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-09-13 13:06:33 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-09-13 13:06:33 +0200 |
commit | 7fb0624d1cbace4c94ce84eb9903a974e6446864 (patch) | |
tree | 8e89c09b23bca08ceeb6fb6f38e0f6dbbe52b88a /lib/pkcs11x.h | |
parent | 27526df9a21d4adf6eaa5392ceca8a28f9674b9d (diff) | |
download | gnutls-7fb0624d1cbace4c94ce84eb9903a974e6446864.tar.gz |
simulate pkcs11x.h when it doesn't exist
Diffstat (limited to 'lib/pkcs11x.h')
-rw-r--r-- | lib/pkcs11x.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/lib/pkcs11x.h b/lib/pkcs11x.h index 0aac3f6f10..94ef48a330 100644 --- a/lib/pkcs11x.h +++ b/lib/pkcs11x.h @@ -21,6 +21,32 @@ #ifndef PKCS11X_H #define PKCS11X_H -#include <p11-kit/pkcs11x.h> +#ifdef HAVE_PKCS11X_H +# include <p11-kit/pkcs11x.h> +#else + +# include <p11-kit/pkcs11.h> + +# ifndef CKA_X_VENDOR +# define CKA_X_VENDOR (CKA_VENDOR_DEFINED | 0x58444700UL) +# endif + +# ifndef CKO_X_VENDOR +# define CKO_X_VENDOR (CKA_VENDOR_DEFINED | 0x58444700UL) +# endif + +# ifndef CKA_X_DISTRUSTED +# define CKA_X_DISTRUSTED (CKA_X_VENDOR + 100) +# endif + +# ifndef CKO_X_CERTIFICATE_EXTENSION +# define CKO_X_CERTIFICATE_EXTENSION (CKO_X_VENDOR + 200) +# endif + +# ifndef CKA_PUBLIC_KEY_INFO +# define CKA_PUBLIC_KEY_INFO 0x00000129UL +# endif + +#endif #endif |