From cd0a2de679a81829b7323bc5db46222b9eaab1d9 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 28 May 2018 12:54:39 +0200 Subject: pkcs11: Exercise GNU calling convention at compile time --- p11-kit/iter.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'p11-kit/iter.h') diff --git a/p11-kit/iter.h b/p11-kit/iter.h index fabcd2f..991dcc9 100644 --- a/p11-kit/iter.h +++ b/p11-kit/iter.h @@ -45,6 +45,16 @@ extern "C" { #ifdef P11_KIT_FUTURE_UNSTABLE_API +/* + * If the caller is using the PKCS#11 GNU calling convention, then we cater + * to that here. + */ +#ifdef CRYPTOKI_GNU +typedef unsigned char CK_BBOOL; +typedef ck_object_handle_t CK_OBJECT_HANDLE; +typedef ck_session_handle_t CK_SESSION_HANDLE; +#endif + typedef struct p11_kit_iter P11KitIter; typedef P11KitIter p11_kit_iter; -- cgit v1.1