Add support for setting the TLS protocol version