]> 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:30:45 +0000 (10:30 +0100)
commit11aa1288ffc95877cd5686e19137b9abd6c374bb
treefe27f01b1497eb6f7c07e48493cc78533477b823
parentc6013abe860e8c76e132e98458fef7122a1622c0
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