documentation: cherry-pick two polarssl fixes to 2.3
Hi,
Steffann just notified me of two master/ fixes that should have gone to release/2.3 as well - removing unused variables and fixing dead code in the polarssl bits. Usually I'd just put the note "also applied to 2.3" in the commit-and-push reply mail, but that was quite a while ago - so, git log and diff here, for full transparency regarding code changes.
gert
commit 2b9b3e598dc5bedc638ebc0a1877b36224398f0f
Author: Yegor Yefremov <[email protected]...> Date: Sun Nov 23 13:21:43 2014 +0100
polarssl: fix unreachable code
Found via cppcheck and compile-tested.
Signed-off-by: Yegor Yefremov <[email protected]...>
Acked-by: Steffan Karger <[email protected]...>
Message-Id: <[email protected]...>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9266
Signed-off-by: Gert Doering <[email protected]...>
(cherry picked from commit 98c5de769d6bcd4822b2fd81ae4f4b05edff5c0e)commit 029138790b00df54ec98eec04e05b494bcf30a94
Author: Steffan Karger <[email protected]...> Date: Sun Jan 12 20:39:31 2014 +0100
Remove unused variables from ssl_verify_polarssl.c's x509_get_serial()
Signed-off-by: Steffan Karger <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8222
Signed-off-by: Gert Doering <[email protected]...>
(cherry picked from commit 7a85a6fafacba186ae2fc495d32e159ea9a57e0e)src/openvpn/ssl_polarssl.c +1 -1
@@ -815,8 +815,8 @@ key_state_write_plaintext (struct key_state_ssl *ks, struct buffer *buf)if (0 == buf->len) { -return 0 ;perf_pop (); +return 0 ; } retval =ssl_write (ks->ctx,BPTR (buf), buf->len);
src/openvpn/ssl_verify_polarssl.c +0 -2
@@ -127,8 +127,6 @@ x509_get_username (char *cn, int cn_len,char *backend_x509_get_serial (openvpn_x509_cert_t *cert,struct gc_arena *gc) { -int ret =0 ; -int i =0 ;char *buf =NULL ;size_t buflen =0 ;mpi serial_mpi = {0 };
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...