static void vnc_client_cache_auth(VncState *client)

{

    if (!client->info) {

        return;

    }



#ifdef CONFIG_VNC_TLS

    if (client->tls.session &&

        client->tls.dname) {

        client->info->has_x509_dname = true;

        client->info->x509_dname = g_strdup(client->tls.dname);

    }

#endif

#ifdef CONFIG_VNC_SASL

    if (client->sasl.conn &&

        client->sasl.username) {

        client->info->has_sasl_username = true;

        client->info->sasl_username = g_strdup(client->sasl.username);

    }

#endif

}

static void vnc_client_cache_auth(VncState *client)

{

    if (!client->info) {

        return;

    }



#ifdef CONFIG_VNC_TLS

    if (client->tls.session &&

        client->tls.dname) {

        client->info->has_x509_dname = true;

        client->info->x509_dname = g_strdup(client->tls.dname);

    }

#endif

#ifdef CONFIG_VNC_SASL

    if (client->sasl.conn &&

        client->sasl.username) {

        client->info->has_sasl_username = true;

        client->info->sasl_username = g_strdup(client->sasl.username);

    }

#endif

}

#ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #endif #endif #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #endif #ifdef CONFIG_VNC_TLS     if (client->tls.session &&         client->tls.dname) {         client->info->has_x509_dname = true;         client->info->x509_dname = g_strdup(client->tls.dname); #endif #ifdef CONFIG_VNC_TLS #endif #ifdef CONFIG_VNC_TLS #endif #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #endif #ifdef CONFIG_VNC_TLS #endif #endif #ifdef CONFIG_VNC_TLS #endif #ifdef CONFIG_VNC_TLS #endif #ifdef CONFIG_VNC_TLS #endif #ifdef CONFIG_VNC_TLS #endif #ifdef CONFIG_VNC_TLS #endif
static void FUNC_0(VncState *VAR_0)

{

    if (!VAR_0->info) {

        return;

    }



#ifdef CONFIG_VNC_TLS

    if (VAR_0->tls.session &&

        VAR_0->tls.dname) {

        VAR_0->info->has_x509_dname = true;

        VAR_0->info->x509_dname = g_strdup(VAR_0->tls.dname);

    }

#endif

#ifdef CONFIG_VNC_SASL

    if (VAR_0->sasl.conn &&

        VAR_0->sasl.username) {

        VAR_0->info->has_sasl_username = true;

        VAR_0->info->sasl_username = g_strdup(VAR_0->sasl.username);

    }

#endif

}

static void FUNC_0(VncState *VAR_0)
{ if (!VAR_0->info) { return; } #ifdef CONFIG_VNC_TLS
if (VAR_0->tls.session &&
VAR_0->tls.dname) { VAR_0->info->has_x509_dname = true; VAR_0->info->x509_dname = g_strdup(VAR_0->tls.dname); } #endif
#ifdef CONFIG_VNC_SASL
if (VAR_0->sasl.conn &&
VAR_0->sasl.username) { VAR_0->info->has_sasl_username = true; VAR_0->info->sasl_username = g_strdup(VAR_0->sasl.username); } #endif
}