|
Lines 21-26
Link Here
|
| 21 |
#include "log.h" |
21 |
#include "log.h" |
| 22 |
#include "xmalloc.h" |
22 |
#include "xmalloc.h" |
| 23 |
|
23 |
|
|
|
24 |
#if OPENSSL_VERSION_NUMBER < 0x00906000L |
| 25 |
#define SSH_OLD_EVP |
| 26 |
#endif |
| 27 |
|
| 24 |
#if OPENSSL_VERSION_NUMBER < 0x00907000L |
28 |
#if OPENSSL_VERSION_NUMBER < 0x00907000L |
| 25 |
#include "rijndael.h" |
29 |
#include "rijndael.h" |
| 26 |
#define AES_KEY rijndael_ctx |
30 |
#define AES_KEY rijndael_ctx |
|
Lines 135-141
Link Here
|
| 135 |
aes_ctr.init = ssh_aes_ctr_init; |
139 |
aes_ctr.init = ssh_aes_ctr_init; |
| 136 |
aes_ctr.cleanup = ssh_aes_ctr_cleanup; |
140 |
aes_ctr.cleanup = ssh_aes_ctr_cleanup; |
| 137 |
aes_ctr.do_cipher = ssh_aes_ctr; |
141 |
aes_ctr.do_cipher = ssh_aes_ctr; |
|
|
142 |
#ifndef SSH_OLD_EVP |
| 138 |
aes_ctr.flags = EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH | |
143 |
aes_ctr.flags = EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH | |
| 139 |
EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CUSTOM_IV; |
144 |
EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CUSTOM_IV; |
|
|
145 |
#endif |
| 140 |
return (&aes_ctr); |
146 |
return (&aes_ctr); |
| 141 |
} |
147 |
} |