Make the TLS validation flags modifiable

It should be possible to set the TLS validation flags. We need it in two
different places, when connecting if using TLS or when sending the
STARTTLS command. We don't do any validation yet from mxsh, but that is
something that should be added at some point.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>