2 using MoonshotRpcInterface;
5 Rpc.client_bind (ref MoonshotRpcInterface.binding_handle, "/org/janet/Moonshot");
8 char *password_out = null;
9 char *certificate_out = null;
12 Rpc.AsyncCall call = Rpc.AsyncCall();
13 get_identity (call, "username@issuer", "pass", "service", &nai_out, &password_out, &certificate_out);
14 result = call.complete_bool ();
17 error ("The nai, password or service does not match the selected identity\n");
19 stdout.printf ("%s %s %s\n", (string)nai_out, (string)password_out, (string)certificate_out);
23 delete certificate_out;
25 Rpc.client_unbind (ref MoonshotRpcInterface.binding_handle);