]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix frame size calculation for non-CBC modes.
authorSteffan Karger <steffan@karger.me>
Tue, 29 Jul 2014 20:52:24 +0000 (22:52 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 27 Feb 2015 16:02:45 +0000 (17:02 +0100)
commit669f898b8fcaf7a8d43825fa0255c2791cc0ef89
treef663383f802900284a6455142501eba151f30185
parent513eef4884c9be1fd31ba676dfe34d91a4ce6141
Fix frame size calculation for non-CBC modes.

CBC mode is the only mode that OpenVPN supports that needs padding. So,
only include the worst case padding size in the frame size calculation when
using CBC mode.

While doing so, rewrite crypto_adjust_frame_parameters() to be better
readable, and provide debug output (for high debug levels).

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1406667144-17674-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8952
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto.c