diff options
author | joe <joe@jerkface.net> | 2016-04-22 01:00:23 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-06 11:51:49 -0400 |
commit | 25fc10d774e95dff10918b889e61f171d6081d95 (patch) | |
tree | 66abd6c6d1362f26dce7fb500d824b80f4ae49dc /session.c | |
parent | ba627ba172d6649919baedff5ba2789610da382a (diff) |
Added wildcard authorization for authorized_keys.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1094,6 +1094,13 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell) | |||
1094 | child_set_env(&env, &envsize, "TERM", s->term); | 1094 | child_set_env(&env, &envsize, "TERM", s->term); |
1095 | if (s->display) | 1095 | if (s->display) |
1096 | child_set_env(&env, &envsize, "DISPLAY", s->display); | 1096 | child_set_env(&env, &envsize, "DISPLAY", s->display); |
1097 | if (wildcard_match) { | ||
1098 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", | ||
1099 | wildcard_match); | ||
1100 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", | ||
1101 | wildcard_fingerprint); | ||
1102 | } | ||
1103 | |||
1097 | 1104 | ||
1098 | /* | 1105 | /* |
1099 | * Since we clear KRB5CCNAME at startup, if it's set now then it | 1106 | * Since we clear KRB5CCNAME at startup, if it's set now then it |