'Initialize L{ClientTLSOptions}.
@param hostname: The hostname to verify as input by a human.
@type hostname: L{unicode}
@param ctx: an L{OpenSSL.SSL.Context} to use for new connections.
@type ctx: L{OpenSSL.SSL.Context}.'

def __init__(self, hostname, ctx):

    self._ctx = ctx
    self._hostname = hostname
    self._hostnameBytes = _idnaBytes(hostname)
    self._hostnameASCII = self._hostnameBytes.decode('ascii')
    ctx.set_info_callback(_tolerateErrors(self._identityVerifyingInfoCallback))
