]> git.ipfire.org Git - thirdparty/openvpn.git/commit
reintroduce md5_digest wrapper struct to fix gcc warnings
authorSteffan Karger <steffan@karger.me>
Sun, 26 Jul 2015 11:27:19 +0000 (13:27 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 27 Jul 2015 18:07:23 +0000 (20:07 +0200)
commit2dd6501e3d679046a1ed488f22d62defdf737cf3
tree6a9d86d41a716c7ddb000c3ce7dbb73a32183d23
parent82acf2163412aae9259e2202dbe001a2ac797b99
reintroduce md5_digest wrapper struct to fix gcc warnings

I was wrong to assume that adding the const qualifier to the pointer-to-
fixed-size-array contruction used in options_hash_changed_or_zero() was
allowed.  GCC actually warns about this, but I was using clang and clang
seems to be fine with the contruction.  To make GCC happy too, reintroduce
the md5_digest wrapped struct, and use that when passing around the digest.

This reverts the "struct md5_digest" parts of 827de237860813d2859a, but
keeps the rest.

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