]> git.ipfire.org Git - thirdparty/openvpn.git/commit
multi: store multi_context address inside top instance
authorAntonio Quartulli <antonio@mandelbit.com>
Wed, 23 Jul 2025 06:10:25 +0000 (08:10 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 23 Jul 2025 08:37:42 +0000 (10:37 +0200)
commit7f5a6deae33a338a23d7e8ff8526db8fdddf4bc2
tree11a01fc5c73609eabb7c9269a6417955d80da487
parent7bcafb316ecea68b1acda9e137df9dce18afcc8c
multi: store multi_context address inside top instance

Future modifications to DCO require accessing the
server multi_context object.

Since it is currently a stack variable that is pointed
by no one, we'd need to pass it to all kind of functions
to ensure it can reach the DCO code.

To make the implementation simpler, it is preferable to
simply assign its address to a struct context's field.

While at it, make some multi_* functions static as they
used only inside multi.c, where they are defined.

Change-Id: Ibf64c681e02ac572d339d4d98e75ceb0cd417c45
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250723061034.20240-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32266.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/multi.c
src/openvpn/multi.h
src/openvpn/openvpn.h