Searched refs:shkey (Results 1 – 6 of 6) sorted by relevance
152 struct sctp_shared_key *shkey = NULL; in sctp_datamsg_from_user() local195 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()
409 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() local839 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()866 sctp_auth_shkey_release(shkey); in sctp_auth_set_key()
263 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()267 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()268 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()520 packet->auth->shkey, gfp); in sctp_packet_pack()789 if ((packet->auth && chunk->shkey != packet->auth->shkey) || in sctp_packet_will_fit()790 (!packet->auth && chunk->shkey && in sctp_packet_will_fit()
75 if (chunk->shkey) { in sctp_control_release_owner()76 struct sctp_shared_key *shkey = chunk->shkey; in sctp_control_release_owner() local83 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 = asoc->shkey; in sctp_control_set_owner_w()111 sctp_auth_shkey_hold(chunk->shkey); in sctp_control_set_owner_w()
130 if (chunk->shkey) in sctp_set_owner_w()131 sctp_auth_shkey_hold(chunk->shkey); in sctp_set_owner_w()9117 if (chunk->shkey) { in sctp_wfree()9118 struct sctp_shared_key *shkey = chunk->shkey; in sctp_wfree() local9124 if (shkey->deactivated && !list_empty(&shkey->key_list) && in sctp_wfree()9125 refcount_read(&shkey->refcnt) == 2) { in sctp_wfree()9128 ev = sctp_ulpevent_make_authkey(asoc, shkey->key_id, in sctp_wfree()9134 sctp_auth_shkey_release(chunk->shkey); in sctp_wfree()
578 struct sctp_shared_key *shkey; member2075 struct sctp_shared_key *shkey; member