]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
in tests/obsolete-server-crypto, do not override GNUTLS_SYSTEM_PRIORITY_FILE when...
authorDaniel Lenski <dlenski@gmail.com>
Sat, 23 Jan 2021 00:47:35 +0000 (16:47 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Sat, 23 Jan 2021 00:50:44 +0000 (16:50 -0800)
This will allow us to test OpenConnect's ability to disable the system-wide crypto policy by itself.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
tests/obsolete-server-crypto

index fff723d4f7cc98c12e788337619fa349f68b0330..90d93ef68b63f2053cfeba3371ee461b3f136f74 100755 (executable)
@@ -25,13 +25,6 @@ top_builddir=${top_builddir:-..}
 
 . `dirname $0`/common.sh
 
-########################################
-# Need to override mandatory system-wide crypto policy on Fedora 31+,
-# for both ocserv and openconnect.
-########################################
-
-export GNUTLS_SYSTEM_PRIORITY_FILE=/dev/null
-
 ########################################
 # Verify that we cannot connect to a server offering only obsolete, insecure
 # crypto UNLESS --allow-insecure-crypto is specified.
@@ -43,7 +36,16 @@ echo "Testing against server with insecure crypto (3DES and RC4 only)... "
 PORT=4568
 TLS_PRIORITIES="LEGACY:%SERVER_PRECEDENCE:%COMPAT:-VERS-TLS-ALL:+VERS-TLS1.0:-CIPHER-ALL:+3DES-CBC:+ARCFOUR-128:+MD5:+SHA1"
 update_config test-obsolete-server-crypto.config
-launch_simple_sr_server -d 1 -f -c $CONFIG
+
+########################################
+# Need to override mandatory system-wide crypto policy on Fedora 31+, in
+# order for ocserv to offer 3DES and RC4.
+#
+# However, we want to leave this policy in place for openconnect,
+# in order to verify the client's ability to disable it on its own.
+########################################
+GNUTLS_SYSTEM_PRIORITY_FILE=/dev/null launch_simple_sr_server -d 1 -f -c $CONFIG
+
 PID=$!
 wait_server $PID