• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/security/keys/

Lines Matching defs:keyring

394  * instantiate a key and link it into the target keyring atomically
395 * - called with the target keyring's semaphore writelocked
400 struct key *keyring,
407 key_check(keyring);
427 /* and link it into the destination keyring */
428 if (keyring)
429 __key_link(keyring, key, _prealloc);
449 * instantiate a key and link it into the target keyring atomically
454 struct key *keyring,
460 if (keyring) {
461 ret = __key_link_begin(keyring, key->type, key->description,
467 ret = __key_instantiate_and_link(key, data, datalen, keyring, authkey,
470 if (keyring)
471 __key_link_end(keyring, key->type, prealloc);
481 * negatively instantiate a key and link it into the target keyring atomically
485 struct key *keyring,
493 key_check(keyring);
498 if (keyring)
499 link_ret = __key_link_begin(keyring, key->type,
519 /* and link it into the destination keyring */
520 if (keyring && link_ret == 0)
521 __key_link(keyring, key, &prealloc);
530 if (keyring)
531 __key_link_end(keyring, key->type, prealloc);
750 * search the specified keyring for a key of the same description; if one is
764 struct key *keyring, *key = NULL;
780 keyring = key_ref_to_ptr(keyring_ref);
782 key_check(keyring);
785 if (keyring->type != &key_type_keyring)
788 ret = __key_link_begin(keyring, ktype, description, &prealloc);
793 * to modify the keyring */
801 * key of the same type and description in the destination keyring and
831 /* instantiate it and link it into the target keyring */
832 ret = __key_instantiate_and_link(key, payload, plen, keyring, NULL,
843 __key_link_end(keyring, ktype, prealloc);
853 __key_link_end(keyring, ktype, prealloc);