summaryrefslogtreecommitdiff
path: root/src/cipher.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2018-06-08 19:31:26 +0200
committerChristian Pointner <equinox@anytun.org>2018-06-08 19:45:54 +0200
commit1f1df7c948267c8939ffe47a9e15ec03b3805a04 (patch)
tree2debab03f6152cbd00c8e1c21768bcbdf7b9bfed /src/cipher.c
parentfix missing include in linux/tun.c (diff)
Add support for openssl 1.1.0.
Thanks to Eneas U de Queiroz <cote2004-github@yahoo.com>
Diffstat (limited to 'src/cipher.c')
-rw-r--r--src/cipher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cipher.c b/src/cipher.c
index f87e2cf..f3ccbce 100644
--- a/src/cipher.c
+++ b/src/cipher.c
@@ -338,7 +338,8 @@ int32_t cipher_aesctr_crypt(cipher_t* c, key_derivation_t* kd, key_derivation_di
}
u_int32_t num = 0;
memset(params->ecount_buf_, 0, AES_BLOCK_SIZE);
- AES_ctr128_encrypt(in, out, (ilen < olen) ? ilen : olen, &params->aes_key_, params->ctr_.buf_, params->ecount_buf_, &num);
+ CRYPTO_ctr128_encrypt(in, out, (ilen < olen) ? ilen : olen, &params->aes_key_, params->ctr_.buf_,
+ params->ecount_buf_, &num, (block128_f)AES_encrypt);
#elif defined(USE_NETTLE)
if(C_AESCTR_CTR_LENGTH != AES_BLOCK_SIZE) {
log_printf(ERROR, "failed to set cipher CTR: size doesn't fit");