added backwards compatibility for OpenSSL versions <= 1.0