Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c
Parent Directory
| Revision Log
| Patch
| 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 |
|
|
|