From: František Dvořák Date: Mon, 21 Dec 2009 16:46:27 +0000 (+0000) Subject: Workaround client certificate settings problem in older Globus. X-Git-Tag: glite-lb-harvester_R_1_0_1_1~6 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=8ea4668c4670909dd1804c6d3b205be22e6f80d7;p=jra1mw.git Workaround client certificate settings problem in older Globus. --- diff --git a/org.glite.lb.harvester/src/harvester.c b/org.glite.lb.harvester/src/harvester.c index 23b0ad5..00045b0 100644 --- a/org.glite.lb.harvester/src/harvester.c +++ b/org.glite.lb.harvester/src/harvester.c @@ -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;