Skip to contentSkip to conversation

Change in openvpn[master]: tests: Allow to test for arbitrary ciphers and digests

Openvpn-devel flichtenheld (Code Review) 1 participant 2 messages Sep 18, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1726656617000.I6fe225db807626a79a160132ee05897554695597@...2715...

#1 lore raw

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/752?usp=email

to review the following change.

Change subject: tests: Allow to test for arbitrary ciphers and digests
......................................................................

tests: Allow to test for arbitrary ciphers and digests

Add program crypto_support that is more generic than ntlm_support. First intended usage is to test for availability of BF-CBC in t_client.sh.

Change-Id I6fe225db807626a79a160132ee05897554695597

---
M tests/Makefile.am
A tests/crypto_support.c

2 files changed, 73 insertions(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/52/752/1

tests/Makefile.am +13 -1
index f26b3b8..7b9f38a 100644
@@ -20,7 +20,7 @@
 if !WIN32
 test_scripts = t_client.sh t_lpback.sh t_cltsrv.sh t_server_null.sh
 
-check_PROGRAMS = ntlm_support
+check_PROGRAMS = ntlm_support crypto_support
 if HAVE_SITNL
 test_scripts += t_net.sh
 endif
@@ -57,3 +57,15 @@
 	$(top_srcdir)/src/openvpn/otime.c \
 	$(top_srcdir)/src/openvpn/packet_id.c \
 	$(top_srcdir)/src/openvpn/platform.c
+
+crypto_support_CFLAGS  = -I$(top_srcdir)/src/openvpn -I$(top_srcdir)/src/compat -I$(top_srcdir)/tests/unit_tests/openvpn -DNO_CMOCKA @TEST_CFLAGS@
+crypto_support_LDFLAGS = @TEST_LDFLAGS@ -L$(top_srcdir)/src/openvpn $(OPTIONAL_CRYPTO_LIBS)
+crypto_support_SOURCES = crypto_support.c \
+	unit_tests/openvpn/mock_msg.c unit_tests/openvpn/mock_msg.h \
+	$(top_srcdir)/src/openvpn/buffer.c \
+	$(top_srcdir)/src/openvpn/crypto.c \
+	$(top_srcdir)/src/openvpn/crypto_openssl.c \
+	$(top_srcdir)/src/openvpn/crypto_mbedtls.c \
+	$(top_srcdir)/src/openvpn/otime.c \
+	$(top_srcdir)/src/openvpn/packet_id.c \
+	$(top_srcdir)/src/openvpn/platform.c
tests/crypto_support.c new file +60 -0

60 lines not on this page · raw message

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/752?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6fe225db807626a79a160132ee05897554695597
Gerrit-Change-Number: 752
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw
In reply to a message not in the archive

flichtenheld has abandoned this change. ( http://gerrit.openvpn.net/c/openvpn/+/752?usp=email )

Change subject: tests: Allow to test for arbitrary ciphers and digests
......................................................................

Abandoned

Use --show-ciphers instead
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/752?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6fe225db807626a79a160132ee05897554695597
Gerrit-Change-Number: 752
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: abandon