Lines Matching defs:ki
61 struct pkcs11_keyinfo *ki;
63 ki = xcalloc(1, sizeof(*ki));
64 ki->providername = xstrdup(name);
65 ki->key = k;
66 ki->label = xstrdup(label);
67 TAILQ_INSERT_TAIL(&pkcs11_keylist, ki, next);
73 struct pkcs11_keyinfo *ki, *nxt;
75 for (ki = TAILQ_FIRST(&pkcs11_keylist); ki; ki = nxt) {
76 nxt = TAILQ_NEXT(ki, next);
77 if (!strcmp(ki->providername, name)) {
78 TAILQ_REMOVE(&pkcs11_keylist, ki, next);
79 free(ki->providername);
80 free(ki->label);
81 sshkey_free(ki->key);
82 free(ki);
91 struct pkcs11_keyinfo *ki;
93 TAILQ_FOREACH(ki, &pkcs11_keylist, next) {
94 debug("check %s %s %s", sshkey_type(ki->key),
95 ki->providername, ki->label);
96 if (sshkey_equal(k, ki->key))
97 return (ki->key);