static int start_auth_vencrypt(VncState *vs)

{

    /* Send VeNCrypt version 0.2 */

    vnc_write_u8(vs, 0);

    vnc_write_u8(vs, 2);



    vnc_read_when(vs, protocol_client_vencrypt_init, 2);

    return 0;

}

static int start_auth_vencrypt(VncState *vs)

{

    

    vnc_write_u8(vs, 0);

    vnc_write_u8(vs, 2);



    vnc_read_when(vs, protocol_client_vencrypt_init, 2);

    return 0;

}

static int FUNC_0(VncState *VAR_0)

{

    

    vnc_write_u8(VAR_0, 0);

    vnc_write_u8(VAR_0, 2);



    vnc_read_when(VAR_0, protocol_client_vencrypt_init, 2);

    return 0;

}

static int FUNC_0(VncState *VAR_0)
{ vnc_write_u8(VAR_0, 0); vnc_write_u8(VAR_0, 2); vnc_read_when(VAR_0, protocol_client_vencrypt_init, 2); return 0; }