+Tue Jul 1 02:31:07 1997 Tom Yu <tlyu@mit.edu>
+
+ * kadm_rpc.h, kadm_rpc_xdr.c: Add support for setv4key.
+
Sun Jun 29 14:52:04 1997 Tom Yu <tlyu@mit.edu>
* kadm_err.et: Add support for kadm5_setv4key_principal.
typedef struct chpass_arg chpass_arg;
bool_t xdr_chpass_arg();
+struct setv4key_arg {
+ krb5_ui_4 api_version;
+ krb5_principal princ;
+ krb5_keyblock *keyblock;
+};
+typedef struct setv4key_arg setv4key_arg;
+bool_t xdr_setv4key_arg();
+
struct setkey_arg {
krb5_ui_4 api_version;
krb5_principal princ;
extern gpols_ret *get_pols_1();
#define SETKEY_PRINCIPAL ((krb5_ui_4) 16)
extern generic_ret *setkey_principal_1();
-
+#define SETV4KEY_PRINCIPAL ((krb5_ui_4) 17)
+extern generic_ret *setv4key_principal_1();
return (TRUE);
}
+bool_t
+xdr_setv4key_arg(XDR *xdrs, setv4key_arg *objp)
+{
+ unsigned int n_keys = 1;
+
+ if (!xdr_ui_4(xdrs, &objp->api_version)) {
+ return (FALSE);
+ }
+ if (!xdr_krb5_principal(xdrs, &objp->princ)) {
+ return (FALSE);
+ }
+ if (!xdr_array(xdrs, (caddr_t *) &objp->keyblock,
+ &n_keys, ~0,
+ sizeof(krb5_keyblock), xdr_krb5_keyblock)) {
+ return (FALSE);
+ }
+ return (TRUE);
+}
+
bool_t
xdr_setkey_arg(XDR *xdrs, setkey_arg *objp)
{