changeset 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 d39cfedaf015
children f54451afc046
files svr-chansession.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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) {