diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2020-11-13 20:31:08 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2020-11-13 20:31:08 +0100 |
commit | 7efb3056d64968e6faaabc4582abc7a5b93a1b23 (patch) | |
tree | a6d9e4acc4c92bd6917b8d0d0fb8a4aa94997fbf /gck | |
parent | 062413bb69a33c3e14478758cc0ed547e0acd2a6 (diff) | |
download | gcr-7efb3056d64968e6faaabc4582abc7a5b93a1b23.tar.gz |
gck-slot: make gck_slot_has_flags to actually check the slot flags
The function is meant (by name and documentation) to check the slot info
flags, but instead it gets and checks the token tags.
Diffstat (limited to 'gck')
-rw-r--r-- | gck/gck-slot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gck/gck-slot.c b/gck/gck-slot.c index d97dbea..60698a9 100644 --- a/gck/gck-slot.c +++ b/gck/gck-slot.c @@ -826,7 +826,7 @@ gck_slot_has_flags (GckSlot *self, gulong flags) { CK_FUNCTION_LIST_PTR funcs; GckModule *module = NULL; - CK_TOKEN_INFO info; + CK_SLOT_INFO info; CK_SLOT_ID handle; CK_RV rv; @@ -839,7 +839,7 @@ gck_slot_has_flags (GckSlot *self, gulong flags) g_return_val_if_fail (funcs, FALSE); memset (&info, 0, sizeof (info)); - rv = (funcs->C_GetTokenInfo) (handle, &info); + rv = (funcs->C_GetSlotInfo) (handle, &info); g_object_unref (module); |