pkcs11: Undefine internal typedef and remove its usage

This commit is contained in:
Jakub Jelen 2021-06-02 14:55:11 +02:00
parent fc2fecc80e
commit 9d1a214340
3 changed files with 4 additions and 2 deletions

View File

@ -810,7 +810,7 @@ out:
*/
#define NUM_INTERFACES 2
#define DEFAULT_INTERFACE 0
ck_interface interfaces[NUM_INTERFACES] = {
CK_INTERFACE interfaces[NUM_INTERFACES] = {
{"PKCS 11", (void *)&pkcs11_function_list_3_0, 0},
{"PKCS 11", (void *)&pkcs11_function_list, 0}
};

View File

@ -176,7 +176,7 @@ allocate_function_list(int v3)
/* The compatibility interfaces that can be returned from Interface functions
* if the V3 API is used, but the proxied module does not support V3 API */
#define NUM_INTERFACES 1
ck_interface compat_interfaces[NUM_INTERFACES] = {
CK_INTERFACE compat_interfaces[NUM_INTERFACES] = {
{"PKCS 11", NULL, 0}
};

View File

@ -1786,6 +1786,8 @@ typedef struct ck_c_initialize_args *CK_C_INITIALIZE_ARGS_PTR;
#undef ck_rv_t
#undef ck_notify_t
#undef ck_interface
#undef ck_function_list
#undef ck_function_list_3_0