mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 03:52:28 +02:00
d93a2b6160
strcasecmp() was initially declared in string.h and subsequently moved to strings.h. For historical reasons it still exists in string.h, but would require _DEFAULT_SOURCE to be defined. Due to the above, just include strings.h as currently dictated by the manpage. Fixes the following warning: keying-material-exporter-demo/keyingmaterialexporter.c:155:14: warning: implicit declaration of function strncasecmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration] 155 | if (!strncasecmp(objbuf, "CN", 2)) | ^~~~~~~~~~~ | strncmp Signed-off-by: Antonio Quartulli <a@unstable.cc> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20220203082620.8186-1-a@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23702.html Signed-off-by: Gert Doering <gert@greenie.muc.de> |
||
---|---|---|
.. | ||
client-connect | ||
defer | ||
keying-material-exporter-demo | ||
log | ||
simple | ||
Makefile.am | ||
Makefile.plugins | ||
README |
OpenVPN plug-in examples. Examples provided: * authentication and logging simple/simple.c -- using the --auth-user-pass-verify callback, verify that the username/password is "foo"/"bar". defer/simple.c -- using the --auth-user-pass-verify callback, test deferred authentication. log/log.c -- Extended variant of simple/simple.c which adds more logging of what is happening inside the plug-in log/log_v3.c -- A variant of log/log.c, which makes use of the OpenVPN plug-in v3 API. This will also log even more information related to certificates in use. * client-connect (and logging) client-connect/sample-client-connect -- demonstrate how to use the CLIENT_CONNECT and CLIENT_CONNECT_V2 hooks to achieve "per client configuration / logging / ..." actions, both in synchronous and async/deferred mode * cryptography related simple/base64.c -- Example using the OpenVPN exported base64 encode/decode functions keying-material-exporter-demo/keyingmaterialexporter.c -- Example based on TLS Keying Material Exporters over HTTP [RFC-5705] (openvpn/doc/keying-material-exporter.txt). For more details, see keying-material-exporter-demo/README To build on *BSD/Linux platforms (requires GNU Make): gmake (builds a default set of plug-ins) gmake simple/simple.so To build on Windows platform (MinGW): cd simple; ./winbuild simple.so To use in OpenVPN, add to config file: plugin simple.so (Linux/BSD/etc.) plugin simple.dll