Lines Matching refs:new_list
83 sctp_auth_chklist_t *new_list; in sctp_copy_chunklist() local
89 new_list = sctp_alloc_chunklist(); in sctp_copy_chunklist()
90 if (new_list == NULL) in sctp_copy_chunklist()
93 memcpy(new_list, list, sizeof(*new_list)); in sctp_copy_chunklist()
95 return (new_list); in sctp_copy_chunklist()
629 sctp_hmaclist_t *new_list; in sctp_alloc_hmaclist() local
632 alloc_size = sizeof(*new_list) + num_hmacs * sizeof(new_list->hmac[0]); in sctp_alloc_hmaclist()
633 SCTP_MALLOC(new_list, sctp_hmaclist_t *, alloc_size, in sctp_alloc_hmaclist()
635 if (new_list == NULL) { in sctp_alloc_hmaclist()
639 new_list->max_algo = num_hmacs; in sctp_alloc_hmaclist()
640 new_list->num_algo = 0; in sctp_alloc_hmaclist()
641 return (new_list); in sctp_alloc_hmaclist()
683 sctp_hmaclist_t *new_list; in sctp_copy_hmaclist() local
689 new_list = sctp_alloc_hmaclist(list->max_algo); in sctp_copy_hmaclist()
690 if (new_list == NULL) in sctp_copy_hmaclist()
693 new_list->max_algo = list->max_algo; in sctp_copy_hmaclist()
694 new_list->num_algo = list->num_algo; in sctp_copy_hmaclist()
696 new_list->hmac[i] = list->hmac[i]; in sctp_copy_hmaclist()
697 return (new_list); in sctp_copy_hmaclist()
703 sctp_hmaclist_t *new_list; in sctp_default_supported_hmaclist() local
705 new_list = sctp_alloc_hmaclist(2); in sctp_default_supported_hmaclist()
706 if (new_list == NULL) in sctp_default_supported_hmaclist()
709 (void)sctp_auth_add_hmacid(new_list, SCTP_AUTH_HMAC_ID_SHA256); in sctp_default_supported_hmaclist()
710 (void)sctp_auth_add_hmacid(new_list, SCTP_AUTH_HMAC_ID_SHA1); in sctp_default_supported_hmaclist()
711 return (new_list); in sctp_default_supported_hmaclist()