static int vnc_set_gnutls_priority(gnutls_session_t s, int x509)

{

    const char *priority = x509 ? "NORMAL" : "NORMAL:+ANON-DH";

    int rc;



    rc = gnutls_priority_set_direct(s, priority, NULL);

    if (rc != GNUTLS_E_SUCCESS) {

        return -1;

    }

    return 0;

}

static int vnc_set_gnutls_priority(gnutls_session_t s, int x509)

{

    const char *priority = x509 ? "NORMAL" : "NORMAL:+ANON-DH";

    int rc;



    rc = gnutls_priority_set_direct(s, priority, NULL);

    if (rc != GNUTLS_E_SUCCESS) {

        return -1;

    }

    return 0;

}

        return -1;         return -1;         return -1;         return -1;         return -1;         return -1;         return -1;     return 0; static int vnc_set_gnutls_priority(gnutls_session_t s, int x509)     const char *priority = x509 ? "NORMAL" : "NORMAL:+ANON-DH";     int rc;     rc = gnutls_priority_set_direct(s, priority, NULL);     if (rc != GNUTLS_E_SUCCESS) {         return -1;     return 0; static int vnc_set_gnutls_priority(gnutls_session_t s, int x509)     int rc;     if (rc != GNUTLS_E_SUCCESS) {         return -1;     if (rc != GNUTLS_E_SUCCESS) {         return -1;     if (rc != GNUTLS_E_SUCCESS) {         return -1;     return 0;         return -1;     return 0;         return -1;     return 0;     return 0;         return -1;
static int FUNC_0(gnutls_session_t VAR_0, int VAR_1)

{

    const char *VAR_2 = VAR_1 ? "NORMAL" : "NORMAL:+ANON-DH";

    int VAR_3;



    VAR_3 = gnutls_priority_set_direct(VAR_0, VAR_2, NULL);

    if (VAR_3 != GNUTLS_E_SUCCESS) {

        return -1;

    }

    return 0;

}

static int FUNC_0(gnutls_session_t VAR_0, int VAR_1)
{ const char *VAR_2 = VAR_1 ? "NORMAL" : "NORMAL:+ANON-DH"; int VAR_3; VAR_3 = gnutls_priority_set_direct(VAR_0, VAR_2, NULL); if (VAR_3 != GNUTLS_E_SUCCESS) { return -1; } return 0; }