Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4490 by yutakapon, Wed Jun 8 12:04:57 2011 UTC revision 4492 by yutakapon, Thu Jun 9 15:25:43 2011 UTC
# Line 1097  static void finish_send_packet_special(P Line 1097  static void finish_send_packet_special(P
1097                  set_uint32(data, encryption_size - 4);                  set_uint32(data, encryption_size - 4);
1098                  data[4] = (unsigned char) padding;                  data[4] = (unsigned char) padding;
1099                  data_length = encryption_size + CRYPT_get_sender_MAC_size(pvar);                  data_length = encryption_size + CRYPT_get_sender_MAC_size(pvar);
1100                    if (msg) {
1101                            // パケット圧縮の場合、バッファを拡張する。(2011.6.10 yutaka)
1102                            buffer_append_space(msg, padding + EVP_MAX_MD_SIZE);
1103                    }
1104  #endif  #endif
1105                  //if (pvar->ssh_state.outbuflen <= 7 + data_length) *(int *)0 = 0;                  //if (pvar->ssh_state.outbuflen <= 7 + data_length) *(int *)0 = 0;
1106                  CRYPT_set_random_data(pvar, data + 5 + len, padding);                  CRYPT_set_random_data(pvar, data + 5 + len, padding);

Legend:
Removed from v.4490  
changed lines
  Added in v.4492

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26