Lines Matching refs:new_list
86 sctp_auth_chklist_t *new_list;
92 new_list = sctp_alloc_chunklist();
93 if (new_list == NULL)
96 memcpy(new_list, list, sizeof(*new_list));
98 return (new_list);
632 sctp_hmaclist_t *new_list;
635 alloc_size = sizeof(*new_list) + num_hmacs * sizeof(new_list->hmac[0]);
636 SCTP_MALLOC(new_list, sctp_hmaclist_t *, alloc_size,
638 if (new_list == NULL) {
642 new_list->max_algo = num_hmacs;
643 new_list->num_algo = 0;
644 return (new_list);
686 sctp_hmaclist_t *new_list;
692 new_list = sctp_alloc_hmaclist(list->max_algo);
693 if (new_list == NULL)
696 new_list->max_algo = list->max_algo;
697 new_list->num_algo = list->num_algo;
699 new_list->hmac[i] = list->hmac[i];
700 return (new_list);
706 sctp_hmaclist_t *new_list;
708 new_list = sctp_alloc_hmaclist(2);
709 if (new_list == NULL)
712 (void)sctp_auth_add_hmacid(new_list, SCTP_AUTH_HMAC_ID_SHA256);
713 (void)sctp_auth_add_hmacid(new_list, SCTP_AUTH_HMAC_ID_SHA1);
714 return (new_list);