]> 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:31:02 +0000 (10:31 +0100)
commit5e7e41dc56d71cb7e414d53059149d9490f14a67
tree36f6c9b0757e43eeeaaa7e8da9da884cbe1e53d8
parent21f60d052e5f841f0689a83122beba40792d71ea
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>
(cherry picked from commit 7d1361c18f38d6301b4d558578c73e74f6597927)
sample/sample-plugins/defer/simple.c