]> git.ipfire.org Git - thirdparty/openvpn.git/commit
cleanup: remove md5 helper functions
authorSteffan Karger <steffan@karger.me>
Sun, 3 May 2015 15:07:11 +0000 (17:07 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 23 May 2015 12:17:59 +0000 (14:17 +0200)
commit827de237860813d2859aaae3aca292d42a9c2a82
tree13b527c877f4f62c5c4d51ac0d29243082ea69ca
parentdb950be85d37eab40d8fffe0bc2060059f8a7e10
cleanup: remove md5 helper functions

The MD5 wrapper functions were used in just a few places, which imho is
not worth the extra code.  Instead of using these wrappers, just use
the generic md_ctx_*() functions directly.

The md5sum() function was only used for logging information that was not
useful to a user; first the full options string would be printed, and
later just the hash.  That hash is less informative than the full
string, so why print it at all?

Finally, also removed save_pulled_options_digest().  The two times it
was called, it executed either one of the possible branches in the
function, where one of these needed a comment to explain what passing
NULL as newdigest is supposed to do...

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