]> andersk Git - moira.git/blobdiff - lib/mr_auth.c
Use mrcl_connect() so we send a query version.
[moira.git] / lib / mr_auth.c
index c70cced5edda59bf4d401c586e7916244c42211e..06d38d36fae76858a7eb5d45d8aaa1d2ac673741 100644 (file)
@@ -67,3 +67,24 @@ int mr_auth(char *prog)
 
   return status;
 }
+
+int mr_proxy(char *principal, char *orig_authtype)
+{
+  int status;
+  mr_params params, reply;
+  char *args[2];
+
+  params.u.mr_procno = MR_PROXY;
+  params.mr_argc = 2;
+  params.mr_argv = args;
+  params.mr_argv[0] = principal;
+  params.mr_argv[1] = orig_authtype;
+  params.mr_argl = NULL;
+
+  if ((status = mr_do_call(&params, &reply)) == MR_SUCCESS)
+    status = reply.u.mr_status;
+
+  mr_destroy_reply(reply);
+
+  return status;
+}
This page took 0.044751 seconds and 4 git commands to generate.