+Tue Jul 1 02:34:46 1997 Tom Yu <tlyu@mit.edu>
+
+ * client_principal.c, client_rpc.c: Add support for setv4key.
Mon Mar 31 17:40:48 1997 Barry Jaspan <bjaspan@mit.edu>
* client_principal.c, client_rpc.c: add support for
return r->code;
}
+kadm5_ret_t
+kadm5_setv4key_principal(void *server_handle,
+ krb5_principal princ,
+ krb5_keyblock *keyblock)
+{
+ setv4key_arg arg;
+ generic_ret *r;
+ kadm5_server_handle_t handle = server_handle;
+
+ CHECK_HANDLE(server_handle);
+
+ arg.princ = princ;
+ arg.keyblock = keyblock;
+ arg.api_version = handle->api_version;
+
+ if(princ == NULL || keyblock == NULL)
+ return EINVAL;
+ r = setv4key_principal_1(&arg, handle->clnt);
+ if(r == NULL)
+ return KADM5_RPC_ERROR;
+ return r->code;
+}
+
kadm5_ret_t
kadm5_setkey_principal(void *server_handle,
krb5_principal princ,
return (&res);
}
+generic_ret *
+setv4key_principal_1(argp, clnt)
+ setv4key_arg *argp;
+ CLIENT *clnt;
+{
+ static generic_ret res;
+
+ memset((char *)&res, 0, sizeof(res));
+ if (clnt_call(clnt, SETV4KEY_PRINCIPAL, xdr_setv4key_arg, argp, xdr_generic_ret, &res, TIMEOUT) != RPC_SUCCESS) {
+ return (NULL);
+ }
+ return (&res);
+}
+
generic_ret *
setkey_principal_1(argp, clnt)
setkey_arg *argp;