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 5473 by yutakapon, Sat Jan 25 13:48:16 2014 UTC revision 5545 by yutakapon, Mon Mar 17 16:06:58 2014 UTC
# Line 4049  int get_cipher_discard_len(SSHCipher cip Line 4049  int get_cipher_discard_len(SSHCipher cip
4049          return (val);          return (val);
4050  }  }
4051    
4052    // 暗号アルゴリズム名から検索する。
4053    SSHCipher get_cipher_by_name(char *name)
4054    {
4055            ssh2_cipher_t *ptr = ssh2_ciphers;
4056            SSHCipher ret = SSH_CIPHER_NONE;
4057    
4058            if (name == NULL)
4059                    goto error;
4060    
4061            while (ptr->name != NULL) {
4062                    if (strcmp(ptr->name, name) == 0) {
4063                            ret = ptr->cipher;
4064                            break;
4065                    }
4066                    ptr++;
4067            }
4068    error:
4069            return (ret);
4070    }
4071    
4072  static char * get_cipher_string(SSHCipher cipher)  static char * get_cipher_string(SSHCipher cipher)
4073  {  {
4074          ssh2_cipher_t *ptr = ssh2_ciphers;          ssh2_cipher_t *ptr = ssh2_ciphers;

Legend:
Removed from v.5473  
changed lines
  Added in v.5545

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