static int start_auth_vnc(VncState *vs)

{

    make_challenge(vs);

    /* Send client a 'random' challenge */

    vnc_write(vs, vs->challenge, sizeof(vs->challenge));

    vnc_flush(vs);



    vnc_read_when(vs, protocol_client_auth_vnc, sizeof(vs->challenge));

    return 0;

}

static int start_auth_vnc(VncState *vs)

{

    make_challenge(vs);

    

    vnc_write(vs, vs->challenge, sizeof(vs->challenge));

    vnc_flush(vs);



    vnc_read_when(vs, protocol_client_auth_vnc, sizeof(vs->challenge));

    return 0;

}

static int FUNC_0(VncState *VAR_0)

{

    make_challenge(VAR_0);

    

    vnc_write(VAR_0, VAR_0->challenge, sizeof(VAR_0->challenge));

    vnc_flush(VAR_0);



    vnc_read_when(VAR_0, protocol_client_auth_vnc, sizeof(VAR_0->challenge));

    return 0;

}

static int FUNC_0(VncState *VAR_0)
{ make_challenge(VAR_0); vnc_write(VAR_0, VAR_0->challenge, sizeof(VAR_0->challenge)); vnc_flush(VAR_0); vnc_read_when(VAR_0, protocol_client_auth_vnc, sizeof(VAR_0->challenge)); return 0; }