Home
last modified time | relevance | path

Searched refs:shkey (Results 1 – 4 of 4) sorted by relevance

/linux/net/sctp/
H A Dchunk.c152 struct sctp_shared_key *shkey = NULL; in sctp_datamsg_from_user() local
196 shkey = sctp_auth_get_shkey(asoc, sinfo->sinfo_ssn); in sctp_datamsg_from_user()
197 if (!shkey) { in sctp_datamsg_from_user()
202 shkey = asoc->shkey; in sctp_datamsg_from_user()
274 chunk->shkey = shkey; in sctp_datamsg_from_user()
H A Dauth.c410 asoc->shkey = ep_key; in sctp_auth_asoc_init_active_key()
418 if (!chunk->shkey) { in sctp_auth_asoc_init_active_key()
419 chunk->shkey = asoc->shkey; in sctp_auth_asoc_init_active_key()
420 sctp_auth_shkey_hold(chunk->shkey); in sctp_auth_asoc_init_active_key()
724 struct sctp_shared_key *cur_key, *shkey; in sctp_auth_set_key() local
742 key_for_each(shkey, sh_keys) { in sctp_auth_set_key()
743 if (shkey->key_id == auth_key->sca_keynumber) { in sctp_auth_set_key()
768 list_del_init(&shkey->key_list); in sctp_auth_set_key()
775 list_add(&shkey->key_list, sh_keys); in sctp_auth_set_key()
779 sctp_auth_shkey_release(shkey); in sctp_auth_set_key()
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 Dsocket.c133 if (chunk->shkey) in sctp_set_owner_w()
134 sctp_auth_shkey_hold(chunk->shkey); in sctp_set_owner_w()
9199 if (chunk->shkey) { in sctp_wfree()
9200 struct sctp_shared_key *shkey = chunk->shkey; in sctp_wfree() local
9206 if (shkey->deactivated && !list_empty(&shkey->key_list) && in sctp_wfree()
9207 refcount_read(&shkey->refcnt) == 2) { in sctp_wfree()
9210 ev = sctp_ulpevent_make_authkey(asoc, shkey->key_id, in sctp_wfree()
9216 sctp_auth_shkey_release(chunk->shkey); in sctp_wfree()