]> git.ipfire.org Git - thirdparty/openvpn.git/commit
polarssl: add easy logging for PolarSSL errors
authorSteffan Karger <steffan@karger.me>
Sun, 8 Mar 2015 10:20:04 +0000 (11:20 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 6 Oct 2015 11:09:31 +0000 (13:09 +0200)
commit6ef5df14917500f107fd843a6dba61355edaeea0
tree7134c1bff10880e490d3c5a8d1e227e2dfa51d61
parent123092a7a95f13f0509d2dc52ec049f91a02686d
polarssl: add easy logging for PolarSSL errors

Add the functions polar_log_err(), polar_log_func_line() and a macro
polar_ok(), to easily log human-readable PolarSSL errors from
polarssl-specific code.

This does not provide the full logging interface as msg(), because I
would have to add a lot more of macro-magic to achieve that on the
various supported compilers and platforms, and this suffices too (for
now at least).

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