Mercurial > dropbear
diff svr-chansession.c @ 1882:2839daa507b3
set envvar SSH_PUBKEYINFO if authstate.pubkey_info contains information
author | HansH111 <hans@atbas.org> |
---|---|
date | Sun, 13 Mar 2022 17:38:38 +0000 |
parents | bfa92efd814b |
children | 284c3837891c |
line wrap: on
line diff
--- a/svr-chansession.c Sun Mar 13 17:38:13 2022 +0000 +++ b/svr-chansession.c Sun Mar 13 17:38:38 2022 +0000 @@ -1030,6 +1030,9 @@ if (chansess->original_command) { addnewvar("SSH_ORIGINAL_COMMAND", chansess->original_command); } + if (ses.authstate.pubkey_info != NULL) { + addnewvar("SSH_PUBKEYINFO", ses.authstate.pubkey_info); + } /* change directory */ if (chdir(ses.authstate.pw_dir) < 0) {