]> git.ipfire.org Git - thirdparty/openvpn.git/commit
ssl_polarssl.c: fix includes and make casts explicit
authorSteffan Karger <steffan@karger.me>
Sat, 25 Oct 2014 09:47:49 +0000 (11:47 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 25 Oct 2014 10:38:56 +0000 (12:38 +0200)
commit35b2ffdcf3f48f4a500cb8ad22330ca3454e6149
tree7471c4d14a33fad75497eec8ddf1c292df687e04
parentf056c8eadc4d5fcda5d1e861425802f503587f16
ssl_polarssl.c: fix includes and make casts explicit

The master branch already has a commit doing almost the same
(9048d50), but since the API for polarssl 1.2 is different, this
could not be cherry-picked back to the 2.3 branch.

This commit:
 * adds a number of missing #includes.
 * makes a number of implicit casts explicit, to silence gcc
   -Wall and clang warnings that hide real problems.
 * changes the type of sha256_hash[] to match what polarssl expects.

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