]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco: print version to log if available
authorAntonio Quartulli <a@unstable.cc>
Thu, 9 Mar 2023 13:14:19 +0000 (14:14 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 13 Mar 2023 14:20:29 +0000 (15:20 +0100)
commit3da238e677b7801607e6777d9d23eb61e38034c2
tree004c4f7b461831d20c6882b4d60d97159bc5b237
parentac1d24286ad4788415ce6f56e97c18562d1cadbd
dco: print version to log if available

In order to provide better support in case of troubleshooting issues,
it's important to know what exact DCO version is loaded on the user
system.

Therefore print the DCO version during bootup.

For Windows and FreeBSD we currently implement a placeholder printing 'v0'.
This should be improved with a follow-up patch.

For Linux we directly fetch the module version from /sys and print
something like:

DCO version: 0.1.20230206-15-g580608ec7c59

Change-Id: Ie1f6fa5d12a473d353d84fd119c2430b638e8bcd
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20230309131419.29157-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26370.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco.h
src/openvpn/dco_freebsd.c
src/openvpn/dco_linux.c
src/openvpn/dco_win.c
src/openvpn/openvpn.c
src/openvpn/options.c
src/openvpn/options.h