Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c
Parent Directory
| Revision Log
| Patch
| 3572 |
return buf; |
return buf; |
| 3573 |
} |
} |
| 3574 |
|
|
| 3575 |
const EVP_CIPHER * (*get_cipher_EVP_CIPHER(SSHCipher cipher))(void) |
const EVP_CIPHER* get_cipher_EVP_CIPHER(SSHCipher cipher) |
| 3576 |
{ |
{ |
| 3577 |
ssh2_cipher_t *ptr = ssh2_ciphers; |
ssh2_cipher_t *ptr = ssh2_ciphers; |
| 3578 |
const EVP_CIPHER *(*type)(void); |
const EVP_CIPHER *type; |
| 3579 |
|
|
| 3580 |
type = EVP_enc_null; |
type = EVP_enc_null(); |
| 3581 |
|
|
| 3582 |
while (ptr->name != NULL) { |
while (ptr->name != NULL) { |
| 3583 |
if (cipher == ptr->cipher) { |
if (cipher == ptr->cipher) { |
| 3584 |
type = ptr->func; |
type = ptr->func(); |
| 3585 |
break; |
break; |
| 3586 |
} |
} |
| 3587 |
ptr++; |
ptr++; |
|
|
Legend:
| Removed from v.3092 |
|
| changed lines |
| |
Added in v.3093 |
|
|
|