Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 6801 by doda, Tue Jun 13 10:30:12 2017 UTC revision 6809 by doda, Mon Jun 19 12:50:42 2017 UTC
# Line 943  char *AUTH_get_user_name(PTInstVar pvar) Line 943  char *AUTH_get_user_name(PTInstVar pvar)
943    
944  int AUTH_set_supported_auth_types(PTInstVar pvar, int types)  int AUTH_set_supported_auth_types(PTInstVar pvar, int types)
945  {  {
946          char buf[1024];          logprintf(LOG_LEVEL_VERBOSE, "Server reports supported authentication method mask = %d", types);
   
         _snprintf_s(buf, sizeof(buf), _TRUNCATE,  
                   "Server reports supported authentication method mask = %d",  
                   types);  
         buf[sizeof(buf) - 1] = 0;  
         notify_verbose_message(pvar, buf, LOG_LEVEL_VERBOSE);  
947    
948          if (SSHv1(pvar)) {          if (SSHv1(pvar)) {
949                  types &= (1 << SSH_AUTH_PASSWORD) | (1 << SSH_AUTH_RSA)                  types &= (1 << SSH_AUTH_PASSWORD) | (1 << SSH_AUTH_RSA)
# Line 973  int AUTH_set_supported_auth_types(PTInst Line 967  int AUTH_set_supported_auth_types(PTInst
967                  return 0;                  return 0;
968          } else {          } else {
969                  if (pvar->auth_state.auth_dialog != NULL) {                  if (pvar->auth_state.auth_dialog != NULL) {
970                          update_server_supported_types(pvar,                          update_server_supported_types(pvar, pvar->auth_state.auth_dialog);
                                                       pvar->auth_state.auth_dialog);  
971                  }                  }
972    
973                  return 1;                  return 1;

Legend:
Removed from v.6801  
changed lines
  Added in v.6809

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