- * clear any cached key(s) if they match the given key id for all assocs on * an endpoint. * ASSUMES INP_WLOCK is already held */
| 1163 | * ASSUMES INP_WLOCK is already held |
| 1164 | */ |
| 1165 | void |
| 1166 | sctp_clear_cachedkeys_ep(struct sctp_inpcb *inp, uint16_t keyid) |
| 1167 | { |
| 1168 | struct sctp_tcb *stcb; |
| 1169 | |
| 1170 | if (inp == NULL) |
| 1171 | return; |
| 1172 | |
| 1173 | /* clear the cached keys on all assocs on this instance */ |
| 1174 | LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) { |
| 1175 | SCTP_TCB_LOCK(stcb); |
| 1176 | sctp_clear_cachedkeys(stcb, keyid); |
| 1177 | SCTP_TCB_UNLOCK(stcb); |
| 1178 | } |
| 1179 | } |
| 1180 | |
| 1181 | /*- |
| 1182 | * delete a shared key from an association |
no test coverage detected