• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..16-Mar-2022-

client-connect/H16-Mar-2022-652414

defer/H16-Mar-2022-982626

keying-material-exporter-demo/H16-Mar-2022-470344

log/H16-Mar-2022-527359

simple/H16-Mar-2022-361172

MakefileH A D16-Mar-202216.5 KiB587470

Makefile.amH A D16-Mar-20221.2 KiB357

Makefile.inH A D16-Mar-202216.6 KiB587472

Makefile.pluginsH A D16-Mar-20221,002 3918

READMEH A D16-Mar-20221.7 KiB4432

README

1OpenVPN plug-in examples.
2
3Examples provided:
4
5* authentication and logging
6simple/simple.c -- using the --auth-user-pass-verify callback, verify
7                   that the username/password is "foo"/"bar".
8defer/simple.c  -- using the --auth-user-pass-verify callback,
9                   test deferred authentication.
10log/log.c       -- Extended variant of simple/simple.c which adds more
11                   logging of what is happening inside the plug-in
12log/log_v3.c    -- A variant of log/log.c, which makes use of the
13                   OpenVPN plug-in v3 API.  This will also log even more
14                   information related to certificates in use.
15
16* client-connect (and logging)
17client-connect/sample-client-connect -- demonstrate how to use the
18                   CLIENT_CONNECT and CLIENT_CONNECT_V2 hooks to achieve
19                   "per client configuration / logging / ..." actions,
20                   both in synchronous and async/deferred mode
21
22* cryptography related
23simple/base64.c -- Example using the OpenVPN exported base64 encode/decode
24                   functions
25keying-material-exporter-demo/keyingmaterialexporter.c
26                -- Example based on TLS Keying Material Exporters over HTTP [RFC-5705]
27                   (openvpn/doc/keying-material-exporter.txt).  For more details, see
28                   keying-material-exporter-demo/README
29
30
31To build on *BSD/Linux platforms (requires GNU Make):
32
33   gmake                   (builds a default set of plug-ins)
34   gmake simple/simple.so
35
36To build on Windows platform (MinGW):
37
38   cd simple; ./winbuild simple.so
39
40To use in OpenVPN, add to config file:
41
42  plugin simple.so (Linux/BSD/etc.)
43  plugin simple.dll
44