diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-11-26 23:43:10 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-11-27 11:02:49 +1100 |
commit | ad44ca81bea83657d558aaef5a1d789a9032bac3 (patch) | |
tree | c4143c62227e817790c3362d409cdef93b5b52da /regress/agent.sh | |
parent | c6efa8a91af1d4fdb43909a23a0a4ffa012155ad (diff) |
upstream: test FIDO2/U2F key types; ok markus@
OpenBSD-Regress-ID: 367e06d5a260407619b4b113ea0bd7004a435474
Diffstat (limited to 'regress/agent.sh')
-rw-r--r-- | regress/agent.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/regress/agent.sh b/regress/agent.sh index 48fa12b0e..922d8436e 100644 --- a/regress/agent.sh +++ b/regress/agent.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: agent.sh,v 1.15 2019/07/23 07:39:43 dtucker Exp $ | 1 | # $OpenBSD: agent.sh,v 1.16 2019/11/26 23:43:10 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="simple agent test" | 4 | tid="simple agent test" |
@@ -8,8 +8,8 @@ if [ $? -ne 2 ]; then | |||
8 | fail "ssh-add -l did not fail with exit code 2" | 8 | fail "ssh-add -l did not fail with exit code 2" |
9 | fi | 9 | fi |
10 | 10 | ||
11 | trace "start agent" | 11 | trace "start agent, args ${EXTRA_AGENT_ARGS} -s" |
12 | eval `${SSHAGENT} -s` > /dev/null | 12 | eval `${SSHAGENT} ${EXTRA_AGENT_ARGS} -s` > /dev/null |
13 | r=$? | 13 | r=$? |
14 | if [ $r -ne 0 ]; then | 14 | if [ $r -ne 0 ]; then |
15 | fatal "could not start ssh-agent: exit code $r" | 15 | fatal "could not start ssh-agent: exit code $r" |
@@ -39,9 +39,9 @@ for t in ${SSH_KEYTYPES}; do | |||
39 | # add to authorized keys | 39 | # add to authorized keys |
40 | cat $OBJ/$t-agent.pub >> $OBJ/authorized_keys_$USER | 40 | cat $OBJ/$t-agent.pub >> $OBJ/authorized_keys_$USER |
41 | # add privat key to agent | 41 | # add privat key to agent |
42 | ${SSHADD} $OBJ/$t-agent > /dev/null 2>&1 | 42 | ${SSHADD} $OBJ/$t-agent #> /dev/null 2>&1 |
43 | if [ $? -ne 0 ]; then | 43 | if [ $? -ne 0 ]; then |
44 | fail "ssh-add did succeed exit code 0" | 44 | fail "ssh-add failed exit code $?" |
45 | fi | 45 | fi |
46 | # Remove private key to ensure that we aren't accidentally using it. | 46 | # Remove private key to ensure that we aren't accidentally using it. |
47 | rm -f $OBJ/$t-agent | 47 | rm -f $OBJ/$t-agent |