Added functions for accessing the buffer and original IV. This hides the changes introduced in OpenSSL 1.1.
The EVP_CIPHER_CTX is now created inside a wrapper function to add support for OpenSSL 1.1. Also fixed improper use of the EVP_CIPHER_CTX internals in binlogrouter.