Home
last modified time | relevance | path

Searched refs:ktype (Results 1 – 4 of 4) sorted by relevance

/security/keys/
Dkey.c662 struct key_type *ktype; in key_type_lookup() local
668 list_for_each_entry(ktype, &key_types_list, link) { in key_type_lookup()
669 if (strcmp(ktype->name, type) == 0) in key_type_lookup()
674 ktype = ERR_PTR(-ENOKEY); in key_type_lookup()
677 return ktype; in key_type_lookup()
685 void key_type_put(struct key_type *ktype) in key_type_put() argument
747 struct key_type *ktype; in key_create_or_update() local
754 ktype = key_type_lookup(type); in key_create_or_update()
755 if (IS_ERR(ktype)) { in key_create_or_update()
761 if (!ktype->match || !ktype->instantiate) in key_create_or_update()
[all …]
Dkeyctl.c154 struct key_type *ktype; in SYSCALL_DEFINE4() local
196 ktype = key_type_lookup(type); in SYSCALL_DEFINE4()
197 if (IS_ERR(ktype)) { in SYSCALL_DEFINE4()
198 ret = PTR_ERR(ktype); in SYSCALL_DEFINE4()
203 key = request_key_and_link(ktype, description, callout_info, in SYSCALL_DEFINE4()
215 key_type_put(ktype); in SYSCALL_DEFINE4()
544 struct key_type *ktype; in keyctl_keyring_search() local
578 ktype = key_type_lookup(type); in keyctl_keyring_search()
579 if (IS_ERR(ktype)) { in keyctl_keyring_search()
580 ret = PTR_ERR(ktype); in keyctl_keyring_search()
[all …]
Dinternal.h86 extern void key_type_put(struct key_type *ktype);
Dkeyring.c476 const struct key_type *ktype, in __keyring_search_one() argument
495 if (key->type == ktype && in __keyring_search_one()