Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c
Parent Directory
| Revision Log
| Patch
| 1738 |
pvar->settings.ssh_protocol_version = 2; // SSH2(default) |
pvar->settings.ssh_protocol_version = 2; // SSH2(default) |
| 1739 |
pvar->rekeying = 0; |
pvar->rekeying = 0; |
| 1740 |
pvar->key_done = 0; |
pvar->key_done = 0; |
| 1741 |
|
pvar->ssh2_autologin = 0; // autologin disabled(default) |
| 1742 |
|
|
| 1743 |
} |
} |
| 1744 |
|
|
| 2264 |
"ssh-dss,ssh-rsa", |
"ssh-dss,ssh-rsa", |
| 2265 |
"3des-cbc,aes128-cbc", |
"3des-cbc,aes128-cbc", |
| 2266 |
"3des-cbc,aes128-cbc", |
"3des-cbc,aes128-cbc", |
| 2267 |
"hmac-sha1,hmac-md5", |
"hmac-sha1", |
| 2268 |
"hmac-sha1,hmac-md5", |
// "hmac-sha1,hmac-md5", |
| 2269 |
|
"hmac-sha1", |
| 2270 |
|
// "hmac-sha1,hmac-md5", |
| 2271 |
"none", |
"none", |
| 2272 |
"none", |
"none", |
| 2273 |
"", |
"", |
| 4013 |
|
|
| 4014 |
// ペイロードの構築 |
// ペイロードの構築 |
| 4015 |
// TODO: |
// TODO: |
| 4016 |
s = pvar->auth_state.user; // ユーザ名 |
if (pvar->ssh2_autologin == 1) { // SSH2自動ログイン |
| 4017 |
#ifdef SSH2_DEBUG |
s = pvar->ssh2_username; |
| 4018 |
s = "nike"; |
} else { |
| 4019 |
#endif |
s = pvar->auth_state.user; // ユーザ名 |
| 4020 |
|
} |
| 4021 |
|
|
| 4022 |
buffer_put_string(msg, s, strlen(s)); |
buffer_put_string(msg, s, strlen(s)); |
| 4023 |
s = "ssh-connection"; |
s = "ssh-connection"; |
| 4024 |
buffer_put_string(msg, s, strlen(s)); |
buffer_put_string(msg, s, strlen(s)); |
| 4025 |
s = "password"; |
s = "password"; |
| 4026 |
buffer_put_string(msg, s, strlen(s)); |
buffer_put_string(msg, s, strlen(s)); |
| 4027 |
buffer_put_char(msg, 0); // 0 |
buffer_put_char(msg, 0); // 0 |
| 4028 |
s = pvar->auth_state.cur_cred.password; // パスワード |
|
| 4029 |
#ifdef SSH2_DEBUG |
if (pvar->ssh2_autologin == 1) { // SSH2自動ログイン |
| 4030 |
s = "kukuri"; |
s = pvar->ssh2_password; |
| 4031 |
#endif |
} else { |
| 4032 |
|
s = pvar->auth_state.cur_cred.password; // パスワード |
| 4033 |
|
} |
| 4034 |
buffer_put_string(msg, s, strlen(s)); |
buffer_put_string(msg, s, strlen(s)); |
| 4035 |
|
|
| 4036 |
// パケット送信 |
// パケット送信 |
| 4406 |
} |
} |
| 4407 |
|
|
| 4408 |
/* |
/* |
| 4409 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 4410 |
|
* Revision 1.2 2004/11/29 15:52:37 yutakakn |
| 4411 |
|
* SSHのdefault protocolをSSH2にした。 |
| 4412 |
|
* |
| 4413 |
*/ |
*/ |
|
|
Legend:
| Removed from v.2738 |
|
| changed lines |
| |
Added in v.2739 |
|
|
| |