| 544 | } |
| 545 | |
| 546 | void |
| 547 | sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t key_id) |
| 548 | { |
| 549 | sctp_sharedkey_t *skey; |
| 550 | |
| 551 | /* find the shared key */ |
| 552 | skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); |
| 553 | |
| 554 | /* bump the ref count */ |
| 555 | if (skey) { |
| 556 | atomic_add_int(&skey->refcount, 1); |
| 557 | SCTPDBG(SCTP_DEBUG_AUTH2, |
| 558 | "%s: stcb %p key %u refcount acquire to %d\n", |
| 559 | __func__, (void *)stcb, key_id, skey->refcount); |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | void |
| 564 | sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t key_id, int so_locked) |
no test coverage detected