From: Aleš Křenek Date: Mon, 7 Nov 2005 14:20:52 +0000 (+0000) Subject: use supplied credentials in gsoap communication X-Git-Tag: before_merge_from_branch_1_0_0_pre_cares~50 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=788f906741c909192403389cdb81ecdabfc490ec;p=jra1mw.git use supplied credentials in gsoap communication --- 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");