Add wrapper functions for buffer and original IV access

Added functions for accessing the buffer and original IV. This hides the
changes introduced in OpenSSL 1.1.
This commit is contained in:
Markus Mäkelä
2017-06-29 13:46:06 +03:00
parent a47d4c40f5
commit 322fae8326
3 changed files with 22 additions and 2 deletions

View File

@ -2874,9 +2874,9 @@ static GWBUF *blr_aes_crypt(ROUTER_INSTANCE *router,
if (size - outlen > 0)
{
if (!blr_aes_create_tail_for_cbc(out_ptr + 4 + outlen,
buffer + outlen,
mxs_evp_cipher_ctx_buf(ctx),
size - outlen,
iv,
mxs_evp_cipher_ctx_oiv(ctx),
router->encryption.key_value,
router->encryption.key_len))
{