ensure backwards compat with openssl