diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2015-01-12 11:46:33 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2015-01-12 11:46:33 +0000 |
commit | cfc3812c5a3906c0b356b5c5af8709516873b461 (patch) | |
tree | 4eb8dd66ee570868d4b42aa7e74da22c89119aa2 /regress | |
parent | 89c8d67e63759f0df1a88c29f70aa437a151fe89 (diff) |
fatal if soft-PKCS11 library is missing rather (rather than continue
and fail with a more cryptic error)
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/ssh/agent-pkcs11.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/agent-pkcs11.sh b/regress/usr.bin/ssh/agent-pkcs11.sh index db33ab37eb6..3aa20c8b1ee 100644 --- a/regress/usr.bin/ssh/agent-pkcs11.sh +++ b/regress/usr.bin/ssh/agent-pkcs11.sh @@ -1,4 +1,4 @@ -# $OpenBSD: agent-pkcs11.sh,v 1.1 2010/02/08 10:52:47 markus Exp $ +# $OpenBSD: agent-pkcs11.sh,v 1.2 2015/01/12 11:46:32 djm Exp $ # Placed in the Public Domain. tid="pkcs11 agent test" @@ -6,6 +6,8 @@ tid="pkcs11 agent test" TEST_SSH_PIN="" TEST_SSH_PKCS11=/usr/local/lib/soft-pkcs11.so.0.0 +test -f "$TEST_SSH_PKCS11" || fatal "$TEST_SSH_PKCS11 does not exist" + # setup environment for soft-pkcs11 token SOFTPKCS11RC=$OBJ/pkcs11.info export SOFTPKCS11RC |