From: Daniel KouĊ™il Date: Mon, 15 Feb 2010 15:31:05 +0000 (+0000) Subject: attribute ordering done only if explicitely enabled X-Git-Tag: glite-security-proxyrenewal_R_1_3_9_1~2 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=b6856631513cc04bfeccee8bce2b52a8d9f458e2;p=jra1mw.git attribute ordering done only if explicitely enabled --- diff --git a/org.glite.security.proxyrenewal/interface/renewal_core.h b/org.glite.security.proxyrenewal/interface/renewal_core.h index 166a3d0..7bfd7e7 100644 --- a/org.glite.security.proxyrenewal/interface/renewal_core.h +++ b/org.glite.security.proxyrenewal/interface/renewal_core.h @@ -20,6 +20,7 @@ typedef struct glite_renewal_core_context_data { glite_renewal_log_dst log_dst; char *err_message; char *voms_conf; + int order_attributes; } glite_renewal_core_context_data; typedef struct glite_renewal_core_context_data *glite_renewal_core_context; diff --git a/org.glite.security.proxyrenewal/src/voms.c b/org.glite.security.proxyrenewal/src/voms.c index 958e905..1fe12f6 100644 --- a/org.glite.security.proxyrenewal/src/voms.c +++ b/org.glite.security.proxyrenewal/src/voms.c @@ -138,11 +138,8 @@ create_voms_command(glite_renewal_core_context ctx, struct vomsdata *vd, struct (role) ? ":" : "", (role) ? role : ""); - /* XXXXXXX */ - if (i < 5) - { + if (ctx->order_attributes) VOMS_Ordering(str, vd, &voms_err); - } asprintf(&tmp, "%s%s%s%s", (cmd) ? cmd : "",