From: Marcel Poul Date: Wed, 18 Jan 2012 12:32:55 +0000 (+0000) Subject: call method by its new namcall method by its new name X-Git-Tag: emi-canl-c_R_1_0_0_0~34 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f25d06fdb2e395b6ff45170cee09eef297691348;p=jra1mw.git call method by its new namcall method by its new name --- diff --git a/emi.canl.canl-c/examples/delegation.c b/emi.canl.canl-c/examples/delegation.c index cef8fb5..c452572 100644 --- a/emi.canl.canl-c/examples/delegation.c +++ b/emi.canl.canl-c/examples/delegation.c @@ -17,7 +17,7 @@ main(int argc, char *argv[]) ctx = canl_create_ctx(); /* Bob - after Alice has asked to delegate her credentials */ - ret = canl_req_create(ctx, &proxy_req); + ret = canl_req_new(ctx, &proxy_req); ret = canl_req_gen_key(ctx, proxy_req, 1024); ret = canl_req_get_req(ctx, proxy_req, &req); @@ -25,13 +25,13 @@ main(int argc, char *argv[]) /* Alice - after receiving the CSR from Bob. (The private key stays with Bob.) */ { - ret = canl_cred_create(ctx, &signer); + ret = canl_cred_new(ctx, &signer); ret = canl_cred_load_cert_file(ctx, signer, "$HOME/.globus/usercert.pem"); ret = canl_cred_load_priv_key_file(ctx, signer, "$HOME/.globus/userkey.pem", NULL, NULL); /* deserialize 'req' from Bob */ - ret = canl_cred_create(ctx, &proxy_cert); + ret = canl_cred_new(ctx, &proxy_cert); ret = canl_cred_load_req(ctx, proxy_cert, req); ret = canl_cred_set_lifetime(ctx, proxy_cert, 60*10); ret = canl_cred_set_cert_type(ctx, proxy_cert, CANL_RFC); @@ -45,7 +45,7 @@ main(int argc, char *argv[]) /* Bob - on receiving the final certificate and chain */ /* deserialize the new proxy cert and chain from Alice */ - ret = canl_cred_create(ctx, &proxy); + ret = canl_cred_new(ctx, &proxy); ret = canl_cred_load_req(ctx, proxy, proxy_req); ret = canl_cred_load_cert(ctx, proxy, x509_cert); ret = canl_cred_load_chain(ctx, proxy, x509_chain); diff --git a/emi.canl.canl-c/examples/grid-proxy-init.c b/emi.canl.canl-c/examples/grid-proxy-init.c index 0a86b37..50a9740 100644 --- a/emi.canl.canl-c/examples/grid-proxy-init.c +++ b/emi.canl.canl-c/examples/grid-proxy-init.c @@ -33,13 +33,13 @@ main(int argc, char *argv[]) } /* Create a new structure for the proxy certificate to be signed copying the key-pairs just created */ - ret = canl_cred_create(ctx, &proxy); + ret = canl_cred_new(ctx, &proxy); ret = canl_cred_load_req(ctx, proxy, proxy_req); ret = canl_cred_set_lifetime(ctx, proxy, 60*10); ret = canl_cred_set_cert_type(ctx, proxy, CANL_RFC); /* Load the signing credentials */ - ret = canl_cred_create(ctx, &signer); + ret = canl_cred_new(ctx, &signer); ret = canl_cred_load_cert_file(ctx, signer, "$HOME/.globus/usercert.pem"); ret = canl_cred_load_priv_key_file(ctx, signer, "$HOME/.globus/userkey.pem", NULL, NULL); /* export lookup routines ?? */