]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Refactor/Reformat tls_pre_decrypt
authorArne Schwabe <arne@rfc2549.org>
Tue, 11 Aug 2020 10:55:41 +0000 (12:55 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 11 Aug 2020 20:15:56 +0000 (22:15 +0200)
commita6a15f7030b25f374a527de57dba199dc64745a3
treec756cd22e9a7290d7ddbf5f6a218e4382a0a1ade
parente02616d82105aeb77f8f811c94fd595ca1a96eae
Refactor/Reformat tls_pre_decrypt

- Extract data packet handling to its own function
- Replace two instances of
          if (x) { code }
  with
          if (!x) return; code

- Remove extra curly braces that were used for pre C99 code style
  to be able to declare variables in the middle of a block

This patch is easier to review with "ignore white space" as the
diff is then a lot smaller in that case and the changes more obvious.

Patch V2: Fix function name spelling, cleanup goto code in the new
          handle_data_channel_packet function

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200811105541.2543-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20707.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c