MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_verify_hmac_param

Function sctp_verify_hmac_param

freebsd/netinet/sctp_auth.c:765–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765int
766sctp_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
778sctp_authinfo_t *
779sctp_alloc_authinfo(void)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected