Home
last modified time | relevance | path

Searched refs:shkey (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/net/sctp/
H A Dchunk.c152 struct sctp_shared_key *shkey = NULL; in sctp_datamsg_from_user() local
195 shkey = sctp_auth_get_shkey(asoc, sinfo->sinfo_ssn); in sctp_datamsg_from_user()
196 if (!shkey) { in sctp_datamsg_from_user()
201 shkey = asoc->shkey; in sctp_datamsg_from_user()
273 chunk->shkey = shkey; in sctp_datamsg_from_user()
H A Dauth.c409 asoc->shkey = ep_key; in sctp_auth_asoc_init_active_key()
417 if (!chunk->shkey) { in sctp_auth_asoc_init_active_key()
418 chunk->shkey = asoc->shkey; in sctp_auth_asoc_init_active_key()
419 sctp_auth_shkey_hold(chunk->shkey); in sctp_auth_asoc_init_active_key()
821 struct sctp_shared_key *cur_key, *shkey; in sctp_auth_set_key() local
839 key_for_each(shkey, sh_keys) { in sctp_auth_set_key()
840 if (shkey->key_id == auth_key->sca_keynumber) { in sctp_auth_set_key()
865 list_del_init(&shkey->key_list); in sctp_auth_set_key()
872 list_add(&shkey in sctp_auth_set_key()
[all...]
H A Doutput.c238 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
242 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()
243 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()
491 packet->auth->shkey, gfp); in sctp_packet_pack()
769 if ((packet->auth && chunk->shkey != packet->auth->shkey) || in sctp_packet_will_fit()
770 (!packet->auth && chunk->shkey && in sctp_packet_will_fit()
H A Dsm_make_chunk.c75 if (chunk->shkey) { in sctp_control_release_owner()
76 struct sctp_shared_key *shkey = chunk->shkey; in sctp_control_release_owner() local
81 * that this shkey can be freed if it's been deactivated. in sctp_control_release_owner()
83 if (shkey->deactivated && !list_empty(&shkey->key_list) && in sctp_control_release_owner()
84 refcount_read(&shkey->refcnt) == 2) { in sctp_control_release_owner()
87 ev = sctp_ulpevent_make_authkey(asoc, shkey->key_id, in sctp_control_release_owner()
93 sctp_auth_shkey_release(chunk->shkey); in sctp_control_release_owner()
110 chunk->shkey in sctp_control_set_owner_w()
[all...]
H A Dsocket.c130 if (chunk->shkey) in sctp_set_owner_w()
131 sctp_auth_shkey_hold(chunk->shkey); in sctp_set_owner_w()
8909 if (chunk->shkey) { in sctp_wfree()
8910 struct sctp_shared_key *shkey = chunk->shkey; in sctp_wfree() local
8914 * that this shkey can be freed if it's been deactivated. in sctp_wfree()
8916 if (shkey->deactivated && !list_empty(&shkey->key_list) && in sctp_wfree()
8917 refcount_read(&shkey->refcnt) == 2) { in sctp_wfree()
8920 ev = sctp_ulpevent_make_authkey(asoc, shkey in sctp_wfree()
[all...]
/kernel/linux/linux-6.6/net/sctp/
H A Dchunk.c152 struct sctp_shared_key *shkey = NULL; in sctp_datamsg_from_user() local
195 shkey = sctp_auth_get_shkey(asoc, sinfo->sinfo_ssn); in sctp_datamsg_from_user()
196 if (!shkey) { in sctp_datamsg_from_user()
201 shkey = asoc->shkey; in sctp_datamsg_from_user()
273 chunk->shkey = shkey; in sctp_datamsg_from_user()
H A Dauth.c409 asoc->shkey = ep_key; in sctp_auth_asoc_init_active_key()
417 if (!chunk->shkey) { in sctp_auth_asoc_init_active_key()
418 chunk->shkey = asoc->shkey; in sctp_auth_asoc_init_active_key()
419 sctp_auth_shkey_hold(chunk->shkey); in sctp_auth_asoc_init_active_key()
821 struct sctp_shared_key *cur_key, *shkey; in sctp_auth_set_key() local
839 key_for_each(shkey, sh_keys) { in sctp_auth_set_key()
840 if (shkey->key_id == auth_key->sca_keynumber) { in sctp_auth_set_key()
865 list_del_init(&shkey->key_list); in sctp_auth_set_key()
872 list_add(&shkey in sctp_auth_set_key()
[all...]
H A Doutput.c264 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
268 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()
269 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()
521 packet->auth->shkey, gfp); in sctp_packet_pack()
793 if ((packet->auth && chunk->shkey != packet->auth->shkey) || in sctp_packet_will_fit()
794 (!packet->auth && chunk->shkey && in sctp_packet_will_fit()
H A Dsm_make_chunk.c75 if (chunk->shkey) { in sctp_control_release_owner()
76 struct sctp_shared_key *shkey = chunk->shkey; in sctp_control_release_owner() local
81 * that this shkey can be freed if it's been deactivated. in sctp_control_release_owner()
83 if (shkey->deactivated && !list_empty(&shkey->key_list) && in sctp_control_release_owner()
84 refcount_read(&shkey->refcnt) == 2) { in sctp_control_release_owner()
87 ev = sctp_ulpevent_make_authkey(asoc, shkey->key_id, in sctp_control_release_owner()
93 sctp_auth_shkey_release(chunk->shkey); in sctp_control_release_owner()
110 chunk->shkey in sctp_control_set_owner_w()
[all...]
H A Dsocket.c132 if (chunk->shkey) in sctp_set_owner_w()
133 sctp_auth_shkey_hold(chunk->shkey); in sctp_set_owner_w()
9154 if (chunk->shkey) { in sctp_wfree()
9155 struct sctp_shared_key *shkey = chunk->shkey; in sctp_wfree() local
9159 * that this shkey can be freed if it's been deactivated. in sctp_wfree()
9161 if (shkey->deactivated && !list_empty(&shkey->key_list) && in sctp_wfree()
9162 refcount_read(&shkey->refcnt) == 2) { in sctp_wfree()
9165 ev = sctp_ulpevent_make_authkey(asoc, shkey in sctp_wfree()
[all...]
/kernel/linux/linux-5.10/include/net/sctp/
H A Dstructs.h572 /* In case of auth enabled, this will point to the shkey */
573 struct sctp_shared_key *shkey; member
2048 struct sctp_shared_key *shkey; member
/kernel/linux/linux-6.6/include/net/sctp/
H A Dstructs.h578 /* In case of auth enabled, this will point to the shkey */
579 struct sctp_shared_key *shkey; member
2074 struct sctp_shared_key *shkey; member

Completed in 36 milliseconds