Added OpenSSL library initialisation and cleanup functions. Initialisation must be called before any OpenSSL API call is made, and cleanup is when OpenSSL is no longer needed in the process.