Re: [Openvpn-devel] [PATCH v2] Add missing check for nl_socket_alloc failure

2023-03-29 Thread Antonio Quartulli
On 29/03/2023 14:46, Arne Schwabe wrote: This can happen if the memory alloc fails. Patch V2: add goto error Change-Id: Iee66caa794d267ac5f8bee584633352893047171 Signed-off-by: Arne Schwabe --- src/openvpn/dco_linux.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[Openvpn-devel] [PATCH v2] Add missing check for nl_socket_alloc failure

2023-03-29 Thread Arne Schwabe
This can happen if the memory alloc fails. Patch V2: add goto error Change-Id: Iee66caa794d267ac5f8bee584633352893047171 Signed-off-by: Arne Schwabe --- src/openvpn/dco_linux.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/openvpn/dco_linux.c b/src/openvpn/dco_linux.c index

[Openvpn-devel] [PATCH] Route: add support for user defined routing table

2023-03-29 Thread Gianmarco De Gregori
Add the ability for users to specify a custom routing table where routes should be installed in. As of now routes are always installed in the main routing table of the operating system, however, with the new --route-table option it is possibile to specify the ID of the default routing table to be

[Openvpn-devel] [PATCH applied] Re: Make cert_data.h and test_cryptoapi/pkcs11.c MSVC compliant

2023-03-29 Thread Gert Doering
I have only loosely followed the discussion, but since this has an ACK *and* passes all GHA compiles and tests, this is good enough for me :-) I have added the "co-authored-by" as requested. Your patch has been applied to the master branch. commit 846951665a60424b98097ad0a77ec6cb1c3d05ac

[Openvpn-devel] [PATCH applied] Re: Unit tests: Test for PKCS#11 using a softhsm2 token

2023-03-29 Thread Gert Doering
Having pkcs#11 tests available is most welcome. This said, I have not really looked into "how can I make this do things for my test beds?", but will do... With the #if HAVE_SOFTHSM2, this does not actually do anything for most build environments yet, but patch 3/3 will enable it for GHA Ubuntu

[Openvpn-devel] [PATCH applied] Re: Enable pkcs11 an dtest_pkcs11 in github actions

2023-03-29 Thread Gert Doering
Ran this through GHA, it claims success, and claims having tested this... [==] Running 3 test(s). Slot 0 has a free/uninitialized token. The token has been initialized and is reassigned to slot 347291425 [ RUN ] test_pkcs11_ids [ OK ] test_pkcs11_ids [ RUN ]

[Openvpn-devel] [PATCH 2/2] test_buffer: add tests for buf_catrunc and its caller format_hex_ex

2023-03-29 Thread Frank Lichtenheld
Just some very basic tests. Signed-off-by: Frank Lichtenheld --- tests/unit_tests/openvpn/test_buffer.c | 59 ++ 1 file changed, 59 insertions(+) diff --git a/tests/unit_tests/openvpn/test_buffer.c b/tests/unit_tests/openvpn/test_buffer.c index 9e3b1d2e..5e61fb07

[Openvpn-devel] [PATCH 1/2 v2] buffer: use memcpy in buf_catrunc

2023-03-29 Thread Frank Lichtenheld
Since we use strlen() to determine the length and then check it ourselves, there is really no point in using strncpy. But the compiler might complain that we use the output of strlen() for the length of strncpy which is usually a sign for bugs: error: ‘strncpy’ specified bound depends on the

[Openvpn-devel] [PATCH applied] Re: Move digest_sign_verify out of test_cryptoapi.c

2023-03-29 Thread Gert Doering
"git show --color-moved=zebra" agrees with "this is just moving stuff around". I have tested that "make dist" picks up the new file (this is something we tend to get wrong), and ran this by GHA (pass). At this point in the 2.6 life cycle, I think we can go back to the "everything goes to master,