]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco: only pass struct context to init function
authorAntonio Quartulli <antonio@mandelbit.com>
Tue, 22 Jul 2025 09:12:04 +0000 (11:12 +0200)
committerAntonio Quartulli <antonio@mandelbit.com>
Wed, 23 Jul 2025 10:03:49 +0000 (12:03 +0200)
commit482409c8a009b117c0ae2a24c36d8de377b1057f
treef7dfc670fdb31acd4304ddae58a9853c83d5a6dd
parent7f5a6deae33a338a23d7e8ff8526db8fdddf4bc2
dco: only pass struct context to init function

Future DCO code will require accessing the `multi` member of the
context object.

For this reason a pointer to the context has to be stored in the
DCO context along with the rest.

At this point, rather than making the call to ovpn_dco_init()
longer with more and more parameters, pass the struct context
only and let the implementation extract the needed fields.

Change-Id: I673a17f8c5dec66cc6c28c1ed44780a7a63927d7
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
src/openvpn/dco.h
src/openvpn/dco_freebsd.c
src/openvpn/dco_linux.c
src/openvpn/dco_linux.h
src/openvpn/dco_win.c
src/openvpn/init.c