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 7018 by doda, Thu Jan 11 13:19:57 2018 UTC revision 7019 by doda, Thu Jan 11 13:20:00 2018 UTC
# Line 133  static void ssh2_scp_get_packetlist(Chan Line 133  static void ssh2_scp_get_packetlist(Chan
133  static void ssh2_scp_free_packetlist(Channel_t *c);  static void ssh2_scp_free_packetlist(Channel_t *c);
134  static void get_window_pixel_size(PTInstVar pvar, int *x, int *y);  static void get_window_pixel_size(PTInstVar pvar, int *x, int *y);
135    
136    // マクロ
137    #define remained_payload(pvar) ((pvar)->ssh_state.payload + payload_current_offset(pvar))
138    #define remained_payloadlen(pvar) ((pvar)->ssh_state.payloadlen - (pvar)->ssh_state.payload_grabbed)
139    #define payload_current_offset(pvar) ((pvar)->ssh_state.payload_grabbed - 1)
140    
141  //  //
142  // Global request confirm  // Global request confirm
143  //  //
# Line 4845  static BOOL handle_SSH2_kexinit(PTInstVa Line 4850  static BOOL handle_SSH2_kexinit(PTInstVa
4850                  SSH2_send_kexinit(pvar);                  SSH2_send_kexinit(pvar);
4851          }          }
4852    
4853          data = pvar->ssh_state.payload;          data = remained_payload(pvar);
4854          len = pvar->ssh_state.payloadlen - 1;          len = remained_payloadlen(pvar);
4855    
4856          // KEX の最後で hash (session-id) を計算するのに使うので保存しておく          // KEX の最後で hash (session-id) を計算するのに使うので保存しておく
4857          if (pvar->peer_kex != NULL) {          if (pvar->peer_kex != NULL) {

Legend:
Removed from v.7018  
changed lines
  Added in v.7019

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