| 7277 |
pvar->ssh2_authlist = cstring; // 不要になったらフリーすること |
pvar->ssh2_authlist = cstring; // 不要になったらフリーすること |
| 7278 |
_snprintf_s(buf, sizeof(buf), _TRUNCATE, "method list from server: %s", cstring); |
_snprintf_s(buf, sizeof(buf), _TRUNCATE, "method list from server: %s", cstring); |
| 7279 |
notify_verbose_message(pvar, buf, LOG_LEVEL_VERBOSE); |
notify_verbose_message(pvar, buf, LOG_LEVEL_VERBOSE); |
| 7280 |
#if 0 |
|
|
if (!pvar->session_settings.CheckAuthListFirst || |
|
|
pvar->ssh2_autologin == 1) { |
|
|
// まず none で試行して返ってきたところなので、実際のログイン処理へ |
|
|
do_SSH2_authrequest(pvar); |
|
|
} |
|
|
else { |
|
|
// TIS 用に OK を押すタイマーを仕掛ける |
|
|
if (pvar->ssh2_authmethod == SSH_AUTH_TIS && |
|
|
pvar->auth_state.auth_dialog != NULL) { |
|
|
SendMessage(pvar->auth_state.auth_dialog, WM_COMMAND, IDOK, 0); |
|
|
} |
|
|
} |
|
|
#else |
|
|
// ひとまず none で試行して返ってきたところなので、実際のログイン処理へ |
|
| 7281 |
if (pvar->ssh2_authmethod == SSH_AUTH_TIS && |
if (pvar->ssh2_authmethod == SSH_AUTH_TIS && |
| 7282 |
(pvar->ask4passwd || pvar->ssh2_autologin) && |
pvar->ask4passwd && |
| 7283 |
|
pvar->session_settings.CheckAuthListFirst && |
| 7284 |
pvar->auth_state.auth_dialog != NULL) { |
pvar->auth_state.auth_dialog != NULL) { |
| 7285 |
|
// challenge で ask4passwd のとき、認証メソッド一覧を自動取得した後 |
| 7286 |
|
// 自動的に TIS ダイアログを出すために OK を押す |
| 7287 |
SendMessage(pvar->auth_state.auth_dialog, WM_COMMAND, IDOK, 0); |
SendMessage(pvar->auth_state.auth_dialog, WM_COMMAND, IDOK, 0); |
| 7288 |
} |
} |
| 7289 |
else { |
else { |
| 7290 |
|
// ひとまず none で試行して返ってきたところなので、実際のログイン処理へ |
| 7291 |
do_SSH2_authrequest(pvar); |
do_SSH2_authrequest(pvar); |
| 7292 |
} |
} |
| 7293 |
#endif |
|
| 7294 |
return TRUE; |
return TRUE; |
| 7295 |
} |
} |
| 7296 |
|
|