Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 5620 by yutakapon, Thu Jun 26 12:48:19 2014 UTC revision 5678 by maya, Sat Oct 4 03:39:24 2014 UTC
# Line 820  void notify_established_secure_connectio Line 820  void notify_established_secure_connectio
820                                 LOG_LEVEL_VERBOSE);                                 LOG_LEVEL_VERBOSE);
821  }  }
822    
823  void notify_closed_connection(PTInstVar pvar)  void notify_closed_connection(PTInstVar pvar, char FAR * send_msg)
824  {  {
825          SSH_notify_disconnecting(pvar, NULL);          SSH_notify_disconnecting(pvar, send_msg);
826          AUTH_notify_disconnecting(pvar);          AUTH_notify_disconnecting(pvar);
827          HOSTS_notify_disconnecting(pvar);          HOSTS_notify_disconnecting(pvar);
828    
829          PostMessage(pvar->NotificationWindow, WM_USER_COMMNOTIFY,          PostMessage(pvar->NotificationWindow, WM_USER_COMMNOTIFY,
830                      pvar->socket, MAKELPARAM(FD_CLOSE, 0));                      pvar->socket, MAKELPARAM(FD_CLOSE, 0));
   
831  }  }
832    
833  static void add_err_msg(PTInstVar pvar, char FAR * msg)  static void add_err_msg(PTInstVar pvar, char FAR * msg)
# Line 869  void notify_nonfatal_error(PTInstVar pva Line 868  void notify_nonfatal_error(PTInstVar pva
868          }          }
869  }  }
870    
871  void notify_fatal_error(PTInstVar pvar, char FAR * msg)  void notify_fatal_error(PTInstVar pvar, char FAR * msg, BOOL send_disconnect)
872  {  {
873          if (msg[0] != 0) {          if (msg[0] != 0) {
874                  notify_verbose_message(pvar, msg, LOG_LEVEL_FATAL);                  notify_verbose_message(pvar, msg, LOG_LEVEL_FATAL);
# Line 879  void notify_fatal_error(PTInstVar pvar, Line 878  void notify_fatal_error(PTInstVar pvar,
878          if (!pvar->fatal_error) {          if (!pvar->fatal_error) {
879                  pvar->fatal_error = TRUE;                  pvar->fatal_error = TRUE;
880    
881                  SSH_notify_disconnecting(pvar, msg);                  if (send_disconnect) {
882                            SSH_notify_disconnecting(pvar, msg);
883                    }
884                  AUTH_notify_disconnecting(pvar);                  AUTH_notify_disconnecting(pvar);
885                  HOSTS_notify_disconnecting(pvar);                  HOSTS_notify_disconnecting(pvar);
886    

Legend:
Removed from v.5620  
changed lines
  Added in v.5678

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