diff options
author | Andrew Cady <d@jerkface.net> | 2018-08-26 07:31:58 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-08-16 14:42:26 -0400 |
commit | 0c69b8b9c83b9f6e6ff5114514a25e70a52b14ce (patch) | |
tree | d0254b5a951cbee39cfd7bd9f1bce618faf06a54 /session.c | |
parent | 31329e74d517caf07ce189df27441bc9659a7074 (diff) |
variable renames, store key type
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1071,11 +1071,15 @@ 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) { | 1074 | if (wildcard_remote_key) { |
1075 | /* This is basically obsolete because of SSH_USER_AUTH */ | ||
1076 | /* I'm leaving it here only because I have code that uses these variables. */ | ||
1075 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", | 1077 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", |
1076 | wildcard_match); | 1078 | wildcard_remote_key); |
1079 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY_TYPE", | ||
1080 | wildcard_remote_key_type); | ||
1077 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", | 1081 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", |
1078 | wildcard_fingerprint); | 1082 | wildcard_remote_key_fingerprint); |
1079 | } | 1083 | } |
1080 | 1084 | ||
1081 | 1085 | ||