#include "p11-kit/pkcs11.h"
+/*
+ * If the caller is using the PKCS#11 GNU calling convention, then we cater
+ * to that here.
+ */
+#ifdef CRYPTOKI_GNU
+typedef ck_rv_t CK_RV;
+typedef struct ck_function_list* CK_FUNCTION_LIST_PTR;
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
CK_RV p11_kit_finalize_module (CK_FUNCTION_LIST_PTR module);
CK_RV p11_kit_load_initialize_module (const char *module_path,
- CK_FUNCTION_LIST_PTR_PTR module);
+ CK_FUNCTION_LIST_PTR *module);
const char* p11_kit_strerror (CK_RV rv);
extern "C" {
#endif
+/*
+ * If the caller is using the PKCS#11 GNU calling convention, then we cater
+ * to that here.
+ */
+#ifdef CRYPTOKI_GNU
+typedef struct ck_info *CK_INFO_PTR;
+typedef struct ck_token_info *CK_TOKEN_INFO_PTR;
+typedef ck_attribute_type_t CK_ATTRIBUTE_TYPE;
+typedef struct ck_attribute *CK_ATTRIBUTE_PTR;
+typedef unsigned long int CK_ULONG;
+#endif
+
#define P11_KIT_URI_SCHEME "pkcs11:"
#define P11_KIT_URI_SCHEME_LEN 7
P11_KIT_URI_IS_ANY = 0x0000FFFF,
} P11KitUriType;
-typedef struct _P11KitUri P11KitUri;
+typedef struct p11_kit_uri P11KitUri;
CK_INFO_PTR p11_kit_uri_get_module_info (P11KitUri *uri);