]> andersk Git - moira.git/commitdiff
add mr_proxy()
authordanw <danw>
Sat, 17 Jul 1999 21:39:38 +0000 (21:39 +0000)
committerdanw <danw>
Sat, 17 Jul 1999 21:39:38 +0000 (21:39 +0000)
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.214464 seconds and 5 git commands to generate.