Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c
Parent Directory
| Revision Log
| Patch
| 1100 |
if (msg) { |
if (msg) { |
| 1101 |
// パケット圧縮の場合、バッファを拡張する。(2011.6.10 yutaka) |
// パケット圧縮の場合、バッファを拡張する。(2011.6.10 yutaka) |
| 1102 |
buffer_append_space(msg, padding + EVP_MAX_MD_SIZE); |
buffer_append_space(msg, padding + EVP_MAX_MD_SIZE); |
| 1103 |
|
// realloc()されると、ポインタが変わる可能性があるので、再度取り直す。 |
| 1104 |
|
data = buffer_ptr(msg); |
| 1105 |
} |
} |
| 1106 |
#endif |
#endif |
| 1107 |
//if (pvar->ssh_state.outbuflen <= 7 + data_length) *(int *)0 = 0; |
//if (pvar->ssh_state.outbuflen <= 7 + data_length) *(int *)0 = 0; |
| 7540 |
if (pvar->ts_SSH->CompressionLevel == 0) { |
if (pvar->ts_SSH->CompressionLevel == 0) { |
| 7541 |
buflen = 8192*4; |
buflen = 8192*4; |
| 7542 |
} else { |
} else { |
| 7543 |
buflen = 1024; |
buflen = 8192*4; |
| 7544 |
} |
} |
| 7545 |
buf = malloc(buflen); |
buf = malloc(buflen); |
| 7546 |
|
|
|
|
Legend:
| Removed from v.4494 |
|
| changed lines |
| |
Added in v.4495 |
|
|
|