]> git.ipfire.org Git - thirdparty/openvpn.git/commit
refine assertion to allow other modes than CBC
authorHeiko Hund <heiko.hund@sophos.com>
Thu, 16 Aug 2012 08:38:50 +0000 (10:38 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 5 Jun 2014 07:16:42 +0000 (09:16 +0200)
commitbe46a2c083a6bd77754bc1674249eab583d25dac
tree94019cdae85916c87a50d572faaa7509ae9e97b6
parentd0154a3a8a73fa656ba7ce2c15087db85c8ece92
refine assertion to allow other modes than CBC

cipher_ctx_final() only returns an outlen in CBC mode. If CFB or OFB
are used the assertion outlen == iv_len is always false.

There's no CBC mode defined for the GOST 28147-89 block cipher. Hence
this patch is needed for it to work. It's needed for other ciphers like
BF-CFB as well, though.

Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <538A00AA.7090007@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8748
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto.c