}
if (c->c2.tls_auth_standalone)
{
- tls_auth_standalone_finalize(c->c2.tls_auth_standalone, &c->c2.frame);
+ tls_init_control_channel_frame_parameters(&c->c2.frame, &c->c2.tls_auth_standalone->frame);
frame_print(&c->c2.tls_auth_standalone->frame, D_MTU_INFO,
"TLS-Auth MTU parms");
}
}
}
-/*
- * Max number of bytes we will add
- * to control channel packet.
- */
-static void
+void
tls_init_control_channel_frame_parameters(const struct frame *data_channel_frame,
struct frame *frame)
{
tls_multi_init_finalize(struct tls_multi *multi, const struct frame *frame)
{
tls_init_control_channel_frame_parameters(frame, &multi->opt.frame);
-
/* initialize the active and untrusted sessions */
tls_session_init(multi, &multi->session[TM_ACTIVE]);
return tas;
}
-void
-tls_auth_standalone_finalize(struct tls_auth_standalone *tas,
- const struct frame *frame)
-{
- tls_init_control_channel_frame_parameters(frame, &tas->frame);
-}
-
/*
* Set local and remote option compatibility strings.
* Used to verify compatibility of local and remote option
struct gc_arena *gc);
/*
- * Finalize a standalone tls-auth verification object.
+ * Setups the control channel frame size parameters from the data channel
+ * parameters
*/
-void tls_auth_standalone_finalize(struct tls_auth_standalone *tas,
- const struct frame *frame);
+void tls_init_control_channel_frame_parameters(const struct frame *data_channel_frame,
+ struct frame *frame);
/*
* Set local and remote option compatibility strings.