From: Tom Yu Date: Tue, 1 Jul 1997 06:32:36 +0000 (+0000) Subject: * kadm_rpc.h, kadm_rpc_xdr.c: Add support for setv4key X-Git-Tag: krb5-1.1-beta1~1117 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6346c7b459f8d1c57b5b84be3570a6824989835c;p=krb5.git * kadm_rpc.h, kadm_rpc_xdr.c: Add support for setv4key git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10107 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm5/ChangeLog b/src/lib/kadm5/ChangeLog index 554541967..0bf85fcaf 100644 --- a/src/lib/kadm5/ChangeLog +++ b/src/lib/kadm5/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 1 02:31:07 1997 Tom Yu + + * kadm_rpc.h, kadm_rpc_xdr.c: Add support for setv4key. + Sun Jun 29 14:52:04 1997 Tom Yu * kadm_err.et: Add support for kadm5_setv4key_principal. diff --git a/src/lib/kadm5/kadm_rpc.h b/src/lib/kadm5/kadm_rpc.h index 82bf3d57c..1cd86f186 100644 --- a/src/lib/kadm5/kadm_rpc.h +++ b/src/lib/kadm5/kadm_rpc.h @@ -66,6 +66,14 @@ struct chpass_arg { 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; @@ -213,4 +221,5 @@ extern gprincs_ret *get_princs_1(); 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(); diff --git a/src/lib/kadm5/kadm_rpc_xdr.c b/src/lib/kadm5/kadm_rpc_xdr.c index fd253043d..4b7f7b4ce 100644 --- a/src/lib/kadm5/kadm_rpc_xdr.c +++ b/src/lib/kadm5/kadm_rpc_xdr.c @@ -585,6 +585,25 @@ xdr_chpass_arg(XDR *xdrs, chpass_arg *objp) 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) {