From 8ea4668c4670909dd1804c6d3b205be22e6f80d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Mon, 21 Dec 2009 16:46:27 +0000 Subject: [PATCH] Workaround client certificate settings problem in older Globus. --- org.glite.lb.harvester/src/harvester.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; -- 1.8.2.3