use voms config file specified on the command-line if it was given
authorDaniel Kouřil <kouril@ics.muni.cz>
Sun, 20 Mar 2005 07:26:51 +0000 (07:26 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Sun, 20 Mar 2005 07:26:51 +0000 (07:26 +0000)
org.glite.security.proxyrenewal/project/version.properties
org.glite.security.proxyrenewal/src/renewd.c
org.glite.security.proxyrenewal/src/voms.c

index 09ad6f1..a5a7632 100644 (file)
@@ -1,4 +1,4 @@
 
-module.version = 1.0.6
+module.version = 1.0.7
 module.age = 1
                                
index 49e4b17..cd2bef8 100644 (file)
@@ -15,8 +15,7 @@ char *vomsdir = NULL;
 int voms_enabled = 0;
 char *cert = NULL;
 char *key = NULL;
-
-char *vomsconf = "/opt/edg/etc/vomses";
+char *vomsconf = NULL;
 
 static volatile int die = 0, child_died = 0;
 
index 70e6b4f..e9cf837 100644 (file)
@@ -11,6 +11,8 @@
 char * Decode(const char *, int, int *);
 char **listadd(char **, char *, int);
 
+extern char *vomsconf;
+
 static int
 generate_proxy(globus_gsi_cred_handle_t cur_proxy,
                X509_EXTENSION *voms_extension, const char *new_file)
@@ -151,7 +153,7 @@ renew_voms_cert(struct vomsdata *vd, struct voms **voms_cert,
    struct contactdata **voms_contacts = NULL;
    char *command = NULL;
 
-   voms_contacts = VOMS_FindByVO(vd, (*voms_cert)->voname, NULL, NULL, &voms_error);
+   voms_contacts = VOMS_FindByVO(vd, (*voms_cert)->voname, vomsconf, NULL, &voms_error);
 
    if (voms_contacts == NULL) {
       fprintf(stderr, "VOMS_FindByVO() failed\n");