Searched refs:sh_key (Results 1 – 2 of 2) sorted by relevance
97 static void sctp_auth_shkey_destroy(struct sctp_shared_key *sh_key) in sctp_auth_shkey_destroy() argument99 BUG_ON(!list_empty(&sh_key->key_list)); in sctp_auth_shkey_destroy()100 sctp_auth_key_put(sh_key->key); in sctp_auth_shkey_destroy()101 sh_key->key = NULL; in sctp_auth_shkey_destroy()102 kfree(sh_key); in sctp_auth_shkey_destroy()105 void sctp_auth_shkey_release(struct sctp_shared_key *sh_key) in sctp_auth_shkey_release() argument107 if (refcount_dec_and_test(&sh_key->refcnt)) in sctp_auth_shkey_release()108 sctp_auth_shkey_destroy(sh_key); in sctp_auth_shkey_release()111 void sctp_auth_shkey_hold(struct sctp_shared_key *sh_key) in sctp_auth_shkey_hold() argument113 refcount_inc(&sh_key->refcnt); in sctp_auth_shkey_hold()[all …]
4363 struct sctp_shared_key *sh_key = NULL; in sctp_sf_authenticate() local4386 sh_key = sctp_auth_get_shkey(asoc, key_id); in sctp_sf_authenticate()4387 if (!sh_key) in sctp_sf_authenticate()4418 sh_key, GFP_ATOMIC); in sctp_sf_authenticate()