diff options
author | Andrew Cady <d@jerkface.net> | 2018-08-26 07:31:58 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-06 11:52:35 -0400 |
commit | 4738aeb85fa56865244969dee521ef7f24d4f7c1 (patch) | |
tree | 961b1a1e035958884d1d5405e63fa1045fc3b128 /session.c | |
parent | 25fc10d774e95dff10918b889e61f171d6081d95 (diff) |
variable renames, store key type
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1094,11 +1094,15 @@ 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) { | 1097 | if (wildcard_remote_key) { |
1098 | /* This is basically obsolete because of SSH_USER_AUTH */ | ||
1099 | /* I'm leaving it here only because I have code that uses these variables. */ | ||
1098 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", | 1100 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", |
1099 | wildcard_match); | 1101 | wildcard_remote_key); |
1102 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY_TYPE", | ||
1103 | wildcard_remote_key_type); | ||
1100 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", | 1104 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", |
1101 | wildcard_fingerprint); | 1105 | wildcard_remote_key_fingerprint); |
1102 | } | 1106 | } |
1103 | 1107 | ||
1104 | 1108 | ||