Home
last modified time | relevance | path

Searched refs:sh_key (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/net/sctp/
Dauth.c111 static void sctp_auth_shkey_destroy(struct sctp_shared_key *sh_key) in sctp_auth_shkey_destroy() argument
113 BUG_ON(!list_empty(&sh_key->key_list)); in sctp_auth_shkey_destroy()
114 sctp_auth_key_put(sh_key->key); in sctp_auth_shkey_destroy()
115 sh_key->key = NULL; in sctp_auth_shkey_destroy()
116 kfree(sh_key); in sctp_auth_shkey_destroy()
119 void sctp_auth_shkey_release(struct sctp_shared_key *sh_key) in sctp_auth_shkey_release() argument
121 if (refcount_dec_and_test(&sh_key->refcnt)) in sctp_auth_shkey_release()
122 sctp_auth_shkey_destroy(sh_key); in sctp_auth_shkey_release()
125 void sctp_auth_shkey_hold(struct sctp_shared_key *sh_key) in sctp_auth_shkey_hold() argument
127 refcount_inc(&sh_key->refcnt); in sctp_auth_shkey_hold()
[all …]
Dsm_statefuns.c4186 struct sctp_shared_key *sh_key = NULL; in sctp_sf_authenticate() local
4209 sh_key = sctp_auth_get_shkey(asoc, key_id); in sctp_sf_authenticate()
4210 if (!sh_key) in sctp_sf_authenticate()
4241 sh_key, GFP_ATOMIC); in sctp_sf_authenticate()
/Linux-v4.19/include/net/sctp/
Dauth.h110 void sctp_auth_shkey_release(struct sctp_shared_key *sh_key);
111 void sctp_auth_shkey_hold(struct sctp_shared_key *sh_key);