From: Daniel KouĊ™il Date: Fri, 17 Mar 2006 14:26:36 +0000 (+0000) Subject: context initialization and removal of useless attributes X-Git-Tag: first~5 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4ebe981ce9ddccd746f8488baf1ef9e8dc449a94;p=jra1mw.git context initialization and removal of useless attributes --- diff --git a/org.glite.security.proxyrenewal/interface/renewal_core.h b/org.glite.security.proxyrenewal/interface/renewal_core.h index dc08c1c..a287fac 100644 --- a/org.glite.security.proxyrenewal/interface/renewal_core.h +++ b/org.glite.security.proxyrenewal/interface/renewal_core.h @@ -17,7 +17,6 @@ typedef struct glite_renewal_core_context_data { int log_level; glite_renewal_log_dst log_dst; char *err_message; - int voms_enabled; char *voms_conf; } glite_renewal_core_context_data; diff --git a/org.glite.security.proxyrenewal/src/renewal_core.c b/org.glite.security.proxyrenewal/src/renewal_core.c index cbcb2e6..d35ed3c 100644 --- a/org.glite.security.proxyrenewal/src/renewal_core.c +++ b/org.glite.security.proxyrenewal/src/renewal_core.c @@ -174,7 +174,7 @@ glite_renewal_core_renew(glite_renewal_core_context ctx, renewed_proxy = tmp_proxy; - if (ctx->voms_enabled && voms_exts) { + if (voms_exts) { char tmp_voms_proxy[FILENAME_MAX]; int tmp_voms_fd; @@ -226,6 +226,9 @@ glite_renewal_core_init_ctx(glite_renewal_core_context *context) if (p == NULL) return ENOMEM; + p->log_level = LOG_ERR; + p->log_dst = GLITE_RENEWAL_LOG_SYSLOG; + *context = p; return 0; } @@ -237,8 +240,6 @@ glite_renewal_core_destroy_ctx(glite_renewal_core_context context) return 0; } -/* XXX remove these ugly things: */ - void edg_wlpr_Log(glite_renewal_core_context context, int dbg_level, const char *format, ...) {