Workaround client certificate settings problem in older Globus.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 21 Dec 2009 16:46:27 +0000 (16:46 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 21 Dec 2009 16:46:27 +0000 (16:46 +0000)
org.glite.lb.harvester/src/harvester.c

index 23b0ad5..00045b0 100644 (file)
@@ -2452,6 +2452,22 @@ int main(int argn, char *argv[]) {
 
        // load configurations
        if (config_load()) goto quit;
+#ifdef WITH_OLD_LB
+       // other client certificate settings ignored by older globus,
+       // using environment (certificate the same for all threads)
+       {
+               char *s;
+
+               if (config.cert) {
+                       asprintf(&s, "X509_USER_CERT=%s", config.cert);
+                       putenv(s);
+               }
+               if (config.key) {
+                       asprintf(&s, "X509_USER_KEY=%s", config.key);
+                       putenv(s);
+               }
+       }
+#endif
 
        // load previous notifications
        if (load_notifs()) goto quit;