xref: /freebsd/crypto/openssh/regress/authinfo.sh (revision 29332c0dcee1e80c9fb871e06c3160bd5deb1b44)
1#	$OpenBSD: authinfo.sh,v 1.3 2018/04/10 00:13:27 djm Exp $
2#	Placed in the Public Domain.
3
4tid="authinfo"
5
6# Ensure the environment variable doesn't leak when ExposeAuthInfo=no.
7verbose "ExposeAuthInfo=no"
8env SSH_USER_AUTH=blah ${SSH} -F $OBJ/ssh_proxy x \
9	'env | grep SSH_USER_AUTH >/dev/null' && fail "SSH_USER_AUTH present"
10
11verbose "ExposeAuthInfo=yes"
12echo 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"
16
17# XXX test multiple auth and key contents
18