change API of max/min_protocol_version and supported_protocol_versions;
use tls_version list instead of config