reformat multi_client_generate_tls_keys according to uncrustify
PATCH 1/1 reformat multi_client_generate_tls_keys according to uncrustify
The refactor accidently used a wrong code style template and ended up using 2 instead of 4 as indent.
Signed-off-by Arne Schwabe <[email protected]...>
--- src/openvpn/multi.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
src/openvpn/multi.c +10 -10
@@ -2003,23 +2003,23 @@ cleanup:static bool multi_client_generate_tls_keys (struct context *c) { -struct frame *frame_fragment =NULL ; +struct frame *frame_fragment =NULL ;#ifdef ENABLE_FRAGMENT -if (c->options.ce.fragment) +if (c->options.ce.fragment) { - frame_fragment = &c->c2.frame_fragment; + frame_fragment = &c->c2.frame_fragment; }#endif -struct tls_session *session = &c->c2.tls_multi->session[TM_ACTIVE ]; -if (!tls_session_update_crypto_params (session, &c->options, - &c->c2.frame, frame_fragment)) +struct tls_session *session = &c->c2.tls_multi->session[TM_ACTIVE ]; +if (!tls_session_update_crypto_params (session, &c->options, + &c->c2.frame, frame_fragment)) { -msg (D_TLS_ERRORS ,"TLS Error: initializing data channel failed" ); -register_signal (c,SIGUSR1 ,"process-push-msg-failed" ); -return false; +msg (D_TLS_ERRORS ,"TLS Error: initializing data channel failed" ); +register_signal (c,SIGUSR1 ,"process-push-msg-failed" ); +return false; } -return true; +return true; } static void
Signature · 1 line
2.26.2
Hi,
Quoted 4 lines · Arne Schwabe
The refactor accidently used a wrong code style template and ended up using 2 instead of 4 as indent.
Signed-off-by Arne Schwabe <[email protected]...>
Signature · 1 line
Antonio Quartulli
Your patch has been applied to the master branch.
commit 90ed0fd2df37441dd6fc368ece006e4dd49093e9
Author: Arne Schwabe Date: Wed Jul 15 16:14:25 2020 +0200
reformat multi_client_generate_tls_keys according to uncrustify
Signed-off-by: Arne Schwabe <[email protected]...>
Acked-by: Antonio Quartulli <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg20371.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering