Add callbacks for connection in TLS connection.