From 4ebe981ce9ddccd746f8488baf1ef9e8dc449a94 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Fri, 17 Mar 2006 14:26:36 +0000 Subject: [PATCH] context initialization and removal of useless attributes --- org.glite.security.proxyrenewal/interface/renewal_core.h | 1 - org.glite.security.proxyrenewal/src/renewal_core.c | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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, ...) { -- 1.8.2.3