upstream: allow override of ssh-pkcs11-helper binary via

$TEST_SSH_SSHPKCS11HELPER from markus@

OpenBSD-Regress-ID: 7382a3d76746f5a792d106912a5819fd5e49e469
This commit is contained in:
djm@openbsd.org 2019-01-20 23:26:44 +00:00 committed by Damien Miller
parent 760ae37b45
commit 3c0c657ed7
1 changed files with 5 additions and 1 deletions

View File

@ -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"