From 788f906741c909192403389cdb81ecdabfc490ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Mon, 7 Nov 2005 14:20:52 +0000 Subject: [PATCH] use supplied credentials in gsoap communication --- org.glite.jp.client/project/version.properties | 2 +- org.glite.jp.client/src/jpimporter.c | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/org.glite.jp.client/project/version.properties b/org.glite.jp.client/project/version.properties index cd1e9e7..1ef4b00 100644 --- a/org.glite.jp.client/project/version.properties +++ b/org.glite.jp.client/project/version.properties @@ -1,2 +1,2 @@ -module.version=1.0.0 +module.version=1.1.0 module.age=1 diff --git a/org.glite.jp.client/src/jpimporter.c b/org.glite.jp.client/src/jpimporter.c index 712f5eb..75e842e 100644 --- a/org.glite.jp.client/src/jpimporter.c +++ b/org.glite.jp.client/src/jpimporter.c @@ -139,6 +139,8 @@ int main(int argc, char *argv[]) char *name, pidfile[PATH_MAX] = GLITE_JPIMPORTER_PIDFILE; + glite_gsplugin_Context plugin_ctx; + name = strrchr(argv[0],'/'); if (name) name++; else name = argv[0]; @@ -239,7 +241,12 @@ int main(int argc, char *argv[]) soap = soap_new(); soap_init(soap); soap_set_namespaces(soap, jpps__namespaces); - soap_register_plugin(soap, glite_gsplugin); + + glite_gsplugin_init_context(&plugin_ctx); + if (server_key) plugin_ctx->key_filename = strdup(server_key); + if (server_cert) plugin_ctx->cert_filename = strdup(server_cert); + + soap_register_plugin_arg(soap, glite_gsplugin,plugin_ctx); if ( (reg_pid = slave(reg_importer, "reg-imp")) < 0 ) { perror("starting reg importer slave"); -- 1.8.2.3