[gcr: 2/4] gck-slot: make gck_slot_has_flags to actually check the slot flags




commit 7efb3056d64968e6faaabc4582abc7a5b93a1b23
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Nov 13 20:31:08 2020 +0100

    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.

 gck/gck-slot.c | 4 ++--
 1 file 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]