Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 4148 |
return SSH_scp_transaction(pvar, remotefile, localfile, FROMREMOTE); |
return SSH_scp_transaction(pvar, remotefile, localfile, FROMREMOTE); |
| 4149 |
} |
} |
| 4150 |
|
|
| 4151 |
|
|
| 4152 |
|
// TTSSHの設定内容(known hosts file)を返す。 |
| 4153 |
|
// |
| 4154 |
|
// return TRUE: 返却成功 |
| 4155 |
|
// FALSE: 失敗 |
| 4156 |
|
// (2015.3.9 yutaka) |
| 4157 |
|
__declspec(dllexport) int CALLBACK TTXReadKnownHostsFile(char *filename, int maxlen) |
| 4158 |
|
{ |
| 4159 |
|
int ret = FALSE; |
| 4160 |
|
char *p; |
| 4161 |
|
|
| 4162 |
|
if (pvar->settings.Enabled) { |
| 4163 |
|
strncpy_s(filename, maxlen, pvar->session_settings.KnownHostsFiles, _TRUNCATE); |
| 4164 |
|
p = strchr(filename, ';'); |
| 4165 |
|
if (p) |
| 4166 |
|
*p = 0; |
| 4167 |
|
|
| 4168 |
|
ret = TRUE; |
| 4169 |
|
} |
| 4170 |
|
|
| 4171 |
|
return (ret); |
| 4172 |
|
} |
| 4173 |
|
|
| 4174 |
|
|
| 4175 |
static void keygen_progress(int phase, int count, cbarg_t *cbarg) { |
static void keygen_progress(int phase, int count, cbarg_t *cbarg) { |
| 4176 |
char buff[1024]; |
char buff[1024]; |
| 4177 |
static char msg[1024]; |
static char msg[1024]; |
|
|
Legend:
| Removed from v.5799 |
|
| changed lines |
| |
Added in v.5820 |
|
|
| |