1 # $OpenBSD: authinfo.sh,v 1.2 2017/10/25 20:08:36 millert Exp $
2 # Placed in the Public Domain.
6 # Ensure the environment variable doesn't leak when ExposeAuthInfo=no.
7 verbose "ExposeAuthInfo=no"
8 env SSH_USER_AUTH=blah ${SSH} -F $OBJ/ssh_proxy x \
9 'env | grep SSH_USER_AUTH >/dev/null' && fail "SSH_USER_AUTH present"
11 verbose "ExposeAuthInfo=yes"
12 echo ExposeAuthInfo=yes >> $OBJ/sshd_proxy
13 ${SSH} -F $OBJ/ssh_proxy x \
14 'grep ^publickey "$SSH_USER_AUTH" /dev/null >/dev/null' ||
15 fail "ssh with ExposeAuthInfo failed"
17 # XXX test multiple auth and key contents