Searched refs:shkey (Results 1 – 6 of 6) sorted by relevance
171 struct sctp_shared_key *shkey = NULL; in sctp_datamsg_from_user() local208 shkey = sctp_auth_get_shkey(asoc, sinfo->sinfo_ssn); in sctp_datamsg_from_user()209 if (!shkey) { in sctp_datamsg_from_user()214 shkey = asoc->shkey; in sctp_datamsg_from_user()286 chunk->shkey = shkey; in sctp_datamsg_from_user()
424 asoc->shkey = ep_key; in sctp_auth_asoc_init_active_key()432 if (!chunk->shkey) { in sctp_auth_asoc_init_active_key()433 chunk->shkey = asoc->shkey; in sctp_auth_asoc_init_active_key()434 sctp_auth_shkey_hold(chunk->shkey); in sctp_auth_asoc_init_active_key()848 struct sctp_shared_key *cur_key, *shkey; in sctp_auth_set_key() local861 key_for_each(shkey, sh_keys) { in sctp_auth_set_key()862 if (shkey->key_id == auth_key->sca_keynumber) { in sctp_auth_set_key()883 list_del_init(&shkey->key_list); in sctp_auth_set_key()884 sctp_auth_shkey_release(shkey); in sctp_auth_set_key()
250 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()254 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()255 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()518 packet->auth->shkey, gfp); in sctp_packet_pack()796 if ((packet->auth && chunk->shkey != packet->auth->shkey) || in sctp_packet_will_fit()797 (!packet->auth && chunk->shkey && in sctp_packet_will_fit()
90 if (chunk->shkey) { in sctp_control_release_owner()91 struct sctp_shared_key *shkey = chunk->shkey; in sctp_control_release_owner() local98 if (shkey->deactivated && !list_empty(&shkey->key_list) && in sctp_control_release_owner()99 refcount_read(&shkey->refcnt) == 2) { in sctp_control_release_owner()102 ev = sctp_ulpevent_make_authkey(asoc, shkey->key_id, in sctp_control_release_owner()108 sctp_auth_shkey_release(chunk->shkey); in sctp_control_release_owner()125 chunk->shkey = asoc->shkey; in sctp_control_set_owner_w()126 sctp_auth_shkey_hold(chunk->shkey); in sctp_control_set_owner_w()
160 if (chunk->shkey) in sctp_set_owner_w()161 sctp_auth_shkey_hold(chunk->shkey); in sctp_set_owner_w()8476 if (chunk->shkey) { in sctp_wfree()8477 struct sctp_shared_key *shkey = chunk->shkey; in sctp_wfree() local8483 if (shkey->deactivated && !list_empty(&shkey->key_list) && in sctp_wfree()8484 refcount_read(&shkey->refcnt) == 2) { in sctp_wfree()8487 ev = sctp_ulpevent_make_authkey(asoc, shkey->key_id, in sctp_wfree()8493 sctp_auth_shkey_release(chunk->shkey); in sctp_wfree()
589 struct sctp_shared_key *shkey; member2047 struct sctp_shared_key *shkey; member