| 763 | } |
| 764 | |
| 765 | int |
| 766 | sctp_verify_hmac_param(struct sctp_auth_hmac_algo *hmacs, uint32_t num_hmacs) |
| 767 | { |
| 768 | uint32_t i; |
| 769 | |
| 770 | for (i = 0; i < num_hmacs; i++) { |
| 771 | if (ntohs(hmacs->hmac_ids[i]) == SCTP_AUTH_HMAC_ID_SHA1) { |
| 772 | return (0); |
| 773 | } |
| 774 | } |
| 775 | return (-1); |
| 776 | } |
| 777 | |
| 778 | sctp_authinfo_t * |
| 779 | sctp_alloc_authinfo(void) |
no outgoing calls
no test coverage detected