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

Function sctp_copy_hmaclist

freebsd/netinet/sctp_auth.c:683–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681}
682
683sctp_hmaclist_t *
684sctp_copy_hmaclist(sctp_hmaclist_t *list)
685{
686 sctp_hmaclist_t *new_list;
687 int i;
688
689 if (list == NULL)
690 return (NULL);
691 /* get a new list */
692 new_list = sctp_alloc_hmaclist(list->max_algo);
693 if (new_list == NULL)
694 return (NULL);
695 /* copy it */
696 new_list->max_algo = list->max_algo;
697 new_list->num_algo = list->num_algo;
698 for (i = 0; i < list->num_algo; i++)
699 new_list->hmac[i] = list->hmac[i];
700 return (new_list);
701}
702
703sctp_hmaclist_t *
704sctp_default_supported_hmaclist(void)

Callers 3

sctp_handle_cookie_echoFunction · 0.85
sctp_do_peeloffFunction · 0.85

Calls 1

sctp_alloc_hmaclistFunction · 0.85

Tested by

no test coverage detected