diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-05-28 12:54:39 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-05-28 14:08:55 +0200 |
commit | cd0a2de679a81829b7323bc5db46222b9eaab1d9 (patch) | |
tree | a0bfaffd628292fbaceb335913cda1b4ab80d8e9 /p11-kit/iter.h | |
parent | e4c5d3b34941bdc433072a492a0a7fdbddba0cc2 (diff) |
pkcs11: Exercise GNU calling convention at compile time
Diffstat (limited to 'p11-kit/iter.h')
-rw-r--r-- | p11-kit/iter.h | 10 |
1 files changed, 10 insertions, 0 deletions
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; |