Changes for OpenSSL v1.1.1 to make compatible with no deprecated option.