Lines Matching refs:keyid

464 	new_key->keyid = 0;  in sctp_alloc_sharedkey()
490 if (skey->keyid == key_id) in sctp_find_sharedkey()
512 if (new_skey->keyid < skey->keyid) { in sctp_insert_sharedkey()
516 } else if (new_skey->keyid == skey->keyid) { in sctp_insert_sharedkey()
522 new_skey->keyid); in sctp_insert_sharedkey()
527 new_skey->keyid); in sctp_insert_sharedkey()
601 new_skey->keyid = skey->keyid; in sctp_copy_sharedkey()
1142 sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid) in sctp_clear_cachedkeys() argument
1147 if (keyid == stcb->asoc.authinfo.assoc_keyid) { in sctp_clear_cachedkeys()
1151 if (keyid == stcb->asoc.authinfo.recv_keyid) { in sctp_clear_cachedkeys()
1163 sctp_clear_cachedkeys_ep(struct sctp_inpcb *inp, uint16_t keyid) in sctp_clear_cachedkeys_ep() argument
1173 sctp_clear_cachedkeys(stcb, keyid); in sctp_clear_cachedkeys_ep()
1183 sctp_delete_sharedkey(struct sctp_tcb *stcb, uint16_t keyid) in sctp_delete_sharedkey() argument
1191 if (keyid == stcb->asoc.authinfo.active_keyid) in sctp_delete_sharedkey()
1195 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, keyid); in sctp_delete_sharedkey()
1208 sctp_clear_cachedkeys(stcb, keyid); in sctp_delete_sharedkey()
1217 sctp_delete_sharedkey_ep(struct sctp_inpcb *inp, uint16_t keyid) in sctp_delete_sharedkey_ep() argument
1225 if (keyid == inp->sctp_ep.default_keyid) in sctp_delete_sharedkey_ep()
1229 skey = sctp_find_sharedkey(&inp->sctp_ep.shared_keys, keyid); in sctp_delete_sharedkey_ep()
1240 sctp_clear_cachedkeys_ep(inp, keyid); in sctp_delete_sharedkey_ep()
1249 sctp_auth_setactivekey(struct sctp_tcb *stcb, uint16_t keyid) in sctp_auth_setactivekey() argument
1254 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, keyid); in sctp_auth_setactivekey()
1265 stcb->asoc.authinfo.active_keyid = keyid; in sctp_auth_setactivekey()
1277 sctp_auth_setactivekey_ep(struct sctp_inpcb *inp, uint16_t keyid) in sctp_auth_setactivekey_ep() argument
1282 skey = sctp_find_sharedkey(&inp->sctp_ep.shared_keys, keyid); in sctp_auth_setactivekey_ep()
1287 inp->sctp_ep.default_keyid = keyid; in sctp_auth_setactivekey_ep()
1296 sctp_deact_sharedkey(struct sctp_tcb *stcb, uint16_t keyid) in sctp_deact_sharedkey() argument
1304 if (keyid == stcb->asoc.authinfo.active_keyid) in sctp_deact_sharedkey()
1308 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, keyid); in sctp_deact_sharedkey()
1315 sctp_ulp_notify(SCTP_NOTIFY_AUTH_FREE_KEY, stcb, 0, &keyid, in sctp_deact_sharedkey()
1330 sctp_deact_sharedkey_ep(struct sctp_inpcb *inp, uint16_t keyid) in sctp_deact_sharedkey_ep() argument
1338 if (keyid == inp->sctp_ep.default_keyid) in sctp_deact_sharedkey_ep()
1342 skey = sctp_find_sharedkey(&inp->sctp_ep.shared_keys, keyid); in sctp_deact_sharedkey_ep()
1500 struct sctp_auth_chunk *auth, struct sctp_tcb *stcb, uint16_t keyid) in sctp_fill_hmac_digest_m() argument
1514 if ((keyid != stcb->asoc.authinfo.assoc_keyid) || in sctp_fill_hmac_digest_m()
1520 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, keyid); in sctp_fill_hmac_digest_m()
1530 stcb->asoc.authinfo.assoc_keyid = keyid; in sctp_fill_hmac_digest_m()
1541 auth->shared_key_id = htons(keyid); in sctp_fill_hmac_digest_m()
1703 uint16_t keyid, int so_locked) in sctp_notify_authentication() argument
1729 auth->auth_keynumber = keyid; in sctp_notify_authentication()