]> git.ipfire.org Git - thirdparty/openvpn.git/commit
polarssl: remove code duplication in key_state_write_plaintext{, _const}()
authorSteffan Karger <steffan@karger.me>
Sun, 3 May 2015 12:06:01 +0000 (14:06 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 3 May 2015 12:39:37 +0000 (14:39 +0200)
commit23b6ba6378bf3a3f5ceb828c8a4dd7cc38947d07
tree323e6d02ca59f0e4f955379f0601cfce4e66fd9c
parentd55be0fb8091ff03af1319a27f68401d31ce8571
polarssl: remove code duplication in key_state_write_plaintext{, _const}()

Both functions had almost exactly the same code.  Instead of the code
duplication, have key_state_write_plaintext() call
key_state_write_plaintext_const() to do the actual work.  This is just
a bit of cleanup, it should not change any behaviour.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1430654761-26563-2-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9640
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_polarssl.c