Skip to content

OpenVPN plug-in API version 3

David Sommerseth openvpn-devel 2 versions – In review

Get series with b4
b4 am [email protected]...

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Define the new openvpn_plugin_{open, func}_v3() APIopenvpn-plugin.h plugin.c plugin.h+227 -30 replies
2/4Implement the core v3 plug-in function calls.plugin.c+27 -20 replies
3/4Extend the v3 plug-in API to send over X509 certificatesinit.c misc.c multi.c +6 more+32 -160 replies
4/4Added a simple plug-in demonstrating the v3 plug-in API.plugin/examples/log_v3.c+245 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Openvpn-devel] [PATCH v2 0/4] OpenVPN plug-in API version 3

This is the second round of implementing a new plug-in API for OpenVPN. This API uses structs for both passing arguments to and from the plug-in functions.

The reason for this approach is to avoid modifying the function API itself to add more information being sent to or from the plug-in functions.

In addition this patchset will also add a X509 certificate OpenSSL structure to the openvpn_plugin_func_v3() calls, which contains the complete parsed certificate sent from the client.

David Sommerseth (4):
Define the new openvpn_plugin_{open,func}_v3() API Implement the core v3 plug-in function calls. Extend the v3 plug-in API to send over X509 certificates Added a simple plug-in demonstrating the v3 plug-in API.

 init.c                   |    2 +-
 misc.c                   |    2 +-
 multi.c                  |    8 +-
 openvpn-plugin.h         |  229 ++++++++++++++++++++++++++++++++++++++++++-
 pf.c                     |    2 +-
 plugin.c                 |   48 ++++++++--
 plugin.h                 |    6 +-
 plugin/examples/log_v3.c |  245 ++++++++++++++++++++++++++++++++++++++++++++++
 socket.c                 |    2 +-
 ssl.c                    |    6 +-
 10 files changed, 530 insertions(+), 20 deletions(-)
 create mode 100644 plugin/examples/log_v3.c
Signature · 1 line
1.7.2.3