]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Update openvpn_plugin_func_v2 to _v3 in sample-plugins/defer/simple.c
authorGreg Cox <gcox@mozilla.com>
Wed, 27 Jan 2021 20:21:48 +0000 (20:21 +0000)
committerGert Doering <gert@greenie.muc.de>
Sat, 30 Jan 2021 09:29:53 +0000 (10:29 +0100)
commit7d1361c18f38d6301b4d558578c73e74f6597927
treedb2c6cd0cadb9c101574c8ed24a6c24d148cd2ae
parent595be121b60f8cee9d4816172a7f9a4987560641
Update openvpn_plugin_func_v2 to _v3 in sample-plugins/defer/simple.c

This isn't strictly required, but it modernizes the functions used.
This change makes _open the same parameter form as _func (for better
parallelism in function writing) and includes a check for the correct
struct version, as recommended by openvpn-plugin.h
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <1611778909-20630-1-git-send-email-gcox@mozilla.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21507.html

Signed-off-by: Gert Doering <gert@greenie.muc.de>
sample/sample-plugins/defer/simple.c