Lines Matching defs:tls_new
829 struct ktls_session *tls_new;
831 tls_new = uma_zalloc(ktls_session_zone, M_WAITOK | M_ZERO);
835 refcount_init(&tls_new->refcount, 1);
837 TASK_INIT(&tls_new->reset_tag_task, 0, ktls_reset_receive_tag,
838 tls_new);
840 TASK_INIT(&tls_new->reset_tag_task, 0, ktls_reset_send_tag,
841 tls_new);
842 tls_new->inp = tls->inp;
843 tls_new->tx = true;
844 in_pcbref(tls_new->inp);
848 tls_new->params = tls->params;
849 tls_new->wq_index = tls->wq_index;
852 if (tls_new->params.auth_key != NULL) {
853 tls_new->params.auth_key = malloc(tls->params.auth_key_len,
855 memcpy(tls_new->params.auth_key, tls->params.auth_key,
859 tls_new->params.cipher_key = malloc(tls->params.cipher_key_len, M_KTLS,
861 memcpy(tls_new->params.cipher_key, tls->params.cipher_key,
864 return (tls_new);
1549 struct ktls_session *tls, *tls_new;
1597 tls_new = ktls_clone_session(tls, KTLS_TX);
1600 error = ktls_try_ifnet(so, tls_new, KTLS_TX, true);
1602 error = ktls_try_sw(tls_new, KTLS_TX);
1605 ktls_free(tls_new);
1614 ktls_free(tls_new);
1627 ktls_free(tls_new);
1635 so->so_snd.sb_tls_info = tls_new;
1636 if (tls_new->mode != TCP_TLS_MODE_SW) {