From 3c0c657ed7cd335fc05c0852d88232ca7e92a5d9 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Sun, 20 Jan 2019 23:26:44 +0000 Subject: upstream: allow override of ssh-pkcs11-helper binary via $TEST_SSH_SSHPKCS11HELPER from markus@ OpenBSD-Regress-ID: 7382a3d76746f5a792d106912a5819fd5e49e469 --- regress/agent-pkcs11.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'regress/agent-pkcs11.sh') diff --git a/regress/agent-pkcs11.sh b/regress/agent-pkcs11.sh index 34662871f..ab429768e 100644 --- a/regress/agent-pkcs11.sh +++ b/regress/agent-pkcs11.sh @@ -1,4 +1,4 @@ -# $OpenBSD: agent-pkcs11.sh,v 1.4 2019/01/20 23:25:25 djm Exp $ +# $OpenBSD: agent-pkcs11.sh,v 1.5 2019/01/20 23:26:44 djm Exp $ # Placed in the Public Domain. tid="pkcs11 agent test" @@ -6,6 +6,10 @@ tid="pkcs11 agent test" TEST_SSH_PIN=1234 TEST_SSH_SOPIN=12345678 TEST_SSH_PKCS11=/usr/local/lib/softhsm/libsofthsm2.so +if [ "x$TEST_SSH_SSHPKCS11HELPER" != "x" ]; then + SSH_PKCS11_HELPER="${TEST_SSH_SSHPKCS11HELPER}" + export SSH_PKCS11_HELPER +fi test -f "$TEST_SSH_PKCS11" || fatal "$TEST_SSH_PKCS11 does not exist" -- cgit v1.2.3