summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-04-22 01:00:23 -0400
committerAndrew Cady <d@jerkface.net>2020-10-27 17:45:22 -0400
commitede8986e4a0e4f19dcc8b972987d29c398c414b9 (patch)
tree6a9da557cb646502b667226673d60e2566b612ba /session.c
parent6c4fd5458b0debff89651106911834a7f08278dd (diff)
Added wildcard authorization for authorized_keys.
Diffstat (limited to 'session.c')
-rw-r--r--session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/session.c b/session.c
index b1796a803..b36e8b1fb 100644
--- a/session.c
+++ b/session.c
@@ -1071,6 +1071,13 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell)
1071 child_set_env(&env, &envsize, "TERM", s->term); 1071 child_set_env(&env, &envsize, "TERM", s->term);
1072 if (s->display) 1072 if (s->display)
1073 child_set_env(&env, &envsize, "DISPLAY", s->display); 1073 child_set_env(&env, &envsize, "DISPLAY", s->display);
1074 if (wildcard_match) {
1075 child_set_env(&env, &envsize, "SSH_REMOTE_KEY",
1076 wildcard_match);
1077 child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT",
1078 wildcard_fingerprint);
1079 }
1080
1074 1081
1075 /* 1082 /*
1076 * Since we clear KRB5CCNAME at startup, if it's set now then it 1083 * Since we clear KRB5CCNAME at startup, if it's set now then it