Lines Matching refs:stream_template
153 const srtp_stream_ctx_t *stream_template) in srtp_stream_dealloc() argument
169 if (stream_template && in srtp_stream_dealloc()
170 stream->num_master_keys == stream_template->num_master_keys) { in srtp_stream_dealloc()
171 template_session_keys = &stream_template->session_keys[i]; in srtp_stream_dealloc()
271 if (stream_template && in srtp_stream_dealloc()
272 stream->enc_xtn_hdr == stream_template->enc_xtn_hdr) { in srtp_stream_dealloc()
451 srtp_err_status_t srtp_stream_clone(const srtp_stream_ctx_t *stream_template, in srtp_stream_clone() argument
469 str->num_master_keys = stream_template->num_master_keys; in srtp_stream_clone()
474 srtp_stream_dealloc(*str_ptr, stream_template); in srtp_stream_clone()
479 for (i = 0; i < stream_template->num_master_keys; i++) { in srtp_stream_clone()
481 template_session_keys = &stream_template->session_keys[i]; in srtp_stream_clone()
499 srtp_stream_dealloc(*str_ptr, stream_template); in srtp_stream_clone()
516 srtp_stream_dealloc(*str_ptr, stream_template); in srtp_stream_clone()
524 &str->rtp_rdbx, srtp_rdbx_get_window_size(&stream_template->rtp_rdbx)); in srtp_stream_clone()
526 srtp_stream_dealloc(*str_ptr, stream_template); in srtp_stream_clone()
531 str->allow_repeat_tx = stream_template->allow_repeat_tx; in srtp_stream_clone()
540 str->direction = stream_template->direction; in srtp_stream_clone()
541 str->rtp_services = stream_template->rtp_services; in srtp_stream_clone()
542 str->rtcp_services = stream_template->rtcp_services; in srtp_stream_clone()
545 str->ekt = stream_template->ekt; in srtp_stream_clone()
548 str->enc_xtn_hdr = stream_template->enc_xtn_hdr; in srtp_stream_clone()
549 str->enc_xtn_hdr_count = stream_template->enc_xtn_hdr_count; in srtp_stream_clone()
1997 if (stream == ctx->stream_template) { in srtp_unprotect_aead()
2008 srtp_stream_clone(ctx->stream_template, hdr->ssrc, &new_stream); in srtp_unprotect_aead()
2088 if (ctx->stream_template != NULL) { in srtp_protect_mki()
2093 srtp_stream_clone(ctx->stream_template, hdr->ssrc, &new_stream); in srtp_protect_mki()
2418 if (ctx->stream_template != NULL) { in srtp_unprotect_mki()
2419 stream = ctx->stream_template; in srtp_unprotect_mki()
2682 if (stream == ctx->stream_template) { in srtp_unprotect_mki()
2693 srtp_stream_clone(ctx->stream_template, hdr->ssrc, &new_stream); in srtp_unprotect_mki()
2814 status = srtp_stream_dealloc(stream, session->stream_template); in srtp_dealloc()
2821 if (session->stream_template != NULL) { in srtp_dealloc()
2822 status = srtp_stream_dealloc(session->stream_template, NULL); in srtp_dealloc()
2866 if (session->stream_template) { in srtp_add_stream()
2870 session->stream_template = tmp; in srtp_add_stream()
2871 session->stream_template->direction = dir_srtp_sender; in srtp_add_stream()
2874 if (session->stream_template) { in srtp_add_stream()
2878 session->stream_template = tmp; in srtp_add_stream()
2879 session->stream_template->direction = dir_srtp_receiver; in srtp_add_stream()
2914 ctx->stream_template = NULL; in srtp_create()
2959 status = srtp_stream_dealloc(stream, session->stream_template); in srtp_remove_stream()
2995 if (session->stream_template == NULL) { in update_template_streams()
3022 session->stream_template->session_keys[0].rtp_auth)) { in update_template_streams()
3070 srtp_stream_dealloc(session->stream_template, NULL); in update_template_streams()
3072 session->stream_template = new_stream_template; in update_template_streams()
3823 if (stream == ctx->stream_template) { in srtp_unprotect_rtcp_aead()
3834 srtp_stream_clone(ctx->stream_template, hdr->ssrc, &new_stream); in srtp_unprotect_rtcp_aead()
3896 if (ctx->stream_template != NULL) { in srtp_protect_rtcp_mki()
3901 srtp_stream_clone(ctx->stream_template, hdr->ssrc, &new_stream); in srtp_protect_rtcp_mki()
4139 if (ctx->stream_template != NULL) { in srtp_unprotect_rtcp_mki()
4140 stream = ctx->stream_template; in srtp_unprotect_rtcp_mki()
4376 if (stream == ctx->stream_template) { in srtp_unprotect_rtcp_mki()
4387 srtp_stream_clone(ctx->stream_template, hdr->ssrc, &new_stream); in srtp_unprotect_rtcp_mki()
4590 if (session->stream_template == NULL && session->stream_list == NULL) { in get_protect_trailer_length()
4596 stream = session->stream_template; in get_protect_trailer_length()