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