Lines Matching refs:sh_key
96 static void sctp_auth_shkey_destroy(struct sctp_shared_key *sh_key)
98 BUG_ON(!list_empty(&sh_key->key_list));
99 sctp_auth_key_put(sh_key->key);
100 sh_key->key = NULL;
101 kfree(sh_key);
104 void sctp_auth_shkey_release(struct sctp_shared_key *sh_key)
106 if (refcount_dec_and_test(&sh_key->refcnt))
107 sctp_auth_shkey_destroy(sh_key);
110 void sctp_auth_shkey_hold(struct sctp_shared_key *sh_key)
112 refcount_inc(&sh_key->refcnt);
357 struct sctp_shared_key *sh_key;
362 key_for_each(sh_key, &ep->endpoint_shared_keys) {
363 new = sctp_auth_shkey_create(sh_key->key_id, gfp);
367 new->key = sh_key->key;