| 485 | } |
| 486 | |
| 487 | sctp_sharedkey_t * |
| 488 | sctp_find_sharedkey(struct sctp_keyhead *shared_keys, uint16_t key_id) |
| 489 | { |
| 490 | sctp_sharedkey_t *skey; |
| 491 | |
| 492 | LIST_FOREACH(skey, shared_keys, next) { |
| 493 | if (skey->keyid == key_id) |
| 494 | return (skey); |
| 495 | } |
| 496 | return (NULL); |
| 497 | } |
| 498 | |
| 499 | int |
| 500 | sctp_insert_sharedkey(struct sctp_keyhead *shared_keys, |
no outgoing calls
no test coverage detected