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 7004 by doda, Mon Dec 18 10:41:13 2017 UTC revision 7005 by doda, Mon Dec 18 11:06:06 2017 UTC
# Line 4152  SSH2Cipher *get_cipher_by_name(char *nam Line 4152  SSH2Cipher *get_cipher_by_name(char *nam
4152  {  {
4153          SSH2Cipher *ptr = ssh2_ciphers;          SSH2Cipher *ptr = ssh2_ciphers;
4154    
4155            if (name == NULL || name[0] == '\0')
4156                    return NULL;
4157    
4158          while (ptr->name != NULL) {          while (ptr->name != NULL) {
4159                  if (name != NULL && strcmp(ptr->name, name) == 0) {                  if (strcmp(ptr->name, name) == 0) {
4160                          return ptr;                          return ptr;
4161                  }                  }
4162                  ptr++;                  ptr++;
4163          }          }
4164    
4165          // not found.          // not found.
4166          return ptr;          return NULL;
4167  }  }
4168    
4169  static char * get_cipher_string(SSH2Cipher *cipher)  static char * get_cipher_string(SSH2Cipher *cipher)

Legend:
Removed from v.7004  
changed lines
  Added in v.7005

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