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 09fb336403
commit 5597db255b
3 changed files with 22 additions and 2 deletions

View File

@ -3103,9 +3103,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))
{