calls to functions deprecated in OpenSSL 1.1 replaced with compatible ones