Lines Matching defs:xdrs

38 _xdr_kadm5_principal_ent_rec(XDR *xdrs, kadm5_principal_ent_rec *objp,
42 xdr_krb5_salttype(XDR *xdrs, krb5_int32 *objp); /* SUNWresync121 XXX */
50 bool_t xdr_ui_4(XDR *xdrs, krb5_ui_4 *objp)
54 return xdr_u_int(xdrs, (uint32_t *) objp);
64 bool_t xdr_nullstring(XDR *xdrs, char **objp)
68 if (xdrs->x_op == XDR_ENCODE) {
74 if (! xdr_u_int(xdrs, &size)) {
77 switch (xdrs->x_op) {
89 return (xdr_opaque(xdrs, *objp, size));
93 return (xdr_opaque(xdrs, *objp, size));
112 bool_t xdr_nulltype(XDR *xdrs, void **objp, xdrproc_t proc)
116 switch (xdrs->x_op) {
118 if (!xdr_bool(xdrs, &null))
124 return (*proc)(xdrs, objp);
131 if (!xdr_bool(xdrs, &null))
134 return (*proc)(xdrs, objp);
139 return (*proc)(xdrs, objp);
147 xdr_krb5_timestamp(XDR *xdrs, krb5_timestamp *objp)
152 if (!xdr_int(xdrs, (int32_t *) objp)) {
159 xdr_krb5_kvno(XDR *xdrs, krb5_kvno *objp)
165 if (xdrs->x_op == XDR_ENCODE)
168 if (!xdr_u_char(xdrs, &tmp))
171 if (xdrs->x_op == XDR_DECODE)
178 xdr_krb5_deltat(XDR *xdrs, krb5_deltat *objp)
183 if (!xdr_int(xdrs, (int32_t *) objp)) {
190 xdr_krb5_flags(XDR *xdrs, krb5_flags *objp)
195 if (!xdr_int(xdrs, (int32_t *) objp)) {
202 xdr_krb5_ui_4(XDR *xdrs, krb5_ui_4 *objp)
204 if (!xdr_u_int(xdrs, (uint32_t *) objp)) {
211 xdr_krb5_int16(XDR *xdrs, krb5_int16 *objp)
217 if (!xdr_int(xdrs, &tmp))
233 xdr_krb5_ui_2(XDR *xdrs, krb5_ui_2 *objp)
239 if (!xdr_u_int(xdrs, &tmp))
249 bool_t xdr_krb5_key_data_nocontents(XDR *xdrs, krb5_key_data *objp)
258 if (xdrs->x_op == XDR_DECODE)
261 if (!xdr_krb5_int16(xdrs, &objp->key_data_ver)) {
264 if (!xdr_krb5_int16(xdrs, &objp->key_data_kvno)) {
267 if (!xdr_krb5_int16(xdrs, &objp->key_data_type[0])) {
271 if (!xdr_krb5_int16(xdrs, &objp->key_data_type[1])) {
281 if (xdrs->x_op == XDR_FREE) {
283 if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[0],
288 if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[1],
298 xdr_krb5_key_salt_tuple(XDR *xdrs, krb5_key_salt_tuple *objp)
300 if (!xdr_krb5_enctype(xdrs, &objp->ks_enctype))
302 if (!xdr_krb5_salttype(xdrs, &objp->ks_salttype))
307 bool_t xdr_krb5_tl_data(XDR *xdrs, krb5_tl_data **tl_data_head)
313 switch (xdrs->x_op) {
328 if (!xdr_bool(xdrs, &more))
332 if (!xdr_krb5_int16(xdrs, &tl->tl_data_type))
335 if (!xdr_bytes(xdrs, (char **) &tl->tl_data_contents, &len, ~0))
344 if (!xdr_bool(xdrs, &more))
352 if (!xdr_krb5_int16(xdrs, &tl2->tl_data_type))
354 if (!xdr_bytes(xdrs, (char **)&tl2->tl_data_contents, &len, ~0))
370 xdr_kadm5_ret_t(XDR *xdrs, kadm5_ret_t *objp)
374 if (xdrs->x_op == XDR_ENCODE)
377 if (!xdr_u_int(xdrs, &tmp))
380 if (xdrs->x_op == XDR_DECODE)
386 bool_t xdr_kadm5_principal_ent_rec_v1(XDR *xdrs,
389 return _xdr_kadm5_principal_ent_rec(xdrs, objp, KADM5_API_VERSION_1);
392 bool_t xdr_kadm5_principal_ent_rec(XDR *xdrs,
395 return _xdr_kadm5_principal_ent_rec(xdrs, objp, KADM5_API_VERSION_2);
399 _xdr_kadm5_principal_ent_rec(XDR *xdrs, kadm5_principal_ent_rec *objp,
404 if (!xdr_krb5_principal(xdrs, &objp->principal)) {
407 if (!xdr_krb5_timestamp(xdrs, &objp->princ_expire_time)) {
410 if (!xdr_krb5_timestamp(xdrs, &objp->last_pwd_change)) {
413 if (!xdr_krb5_timestamp(xdrs, &objp->pw_expiration)) {
416 if (!xdr_krb5_deltat(xdrs, &objp->max_life)) {
420 if (!xdr_krb5_principal(xdrs, &objp->mod_name)) {
424 if (!xdr_nulltype(xdrs, (void **) &objp->mod_name,
429 if (!xdr_krb5_timestamp(xdrs, &objp->mod_date)) {
432 if (!xdr_krb5_flags(xdrs, &objp->attributes)) {
435 if (!xdr_krb5_kvno(xdrs, &objp->kvno)) {
438 if (!xdr_krb5_kvno(xdrs, &objp->mkvno)) {
441 if (!xdr_nullstring(xdrs, &objp->policy)) {
444 if (!xdr_long(xdrs, &objp->aux_attributes)) {
448 if (!xdr_krb5_deltat(xdrs, &objp->max_renewable_life)) {
451 if (!xdr_krb5_timestamp(xdrs, &objp->last_success)) {
454 if (!xdr_krb5_timestamp(xdrs, &objp->last_failed)) {
457 if (!xdr_krb5_kvno(xdrs, &objp->fail_auth_count)) {
460 if (!xdr_krb5_int16(xdrs, &objp->n_key_data)) {
463 if (!xdr_krb5_int16(xdrs, &objp->n_tl_data)) {
466 if (!xdr_nulltype(xdrs, (void **) &objp->tl_data,
471 if (!xdr_array(xdrs, (caddr_t *) &objp->key_data,
481 xdr_kadm5_policy_ent_rec(XDR *xdrs, kadm5_policy_ent_rec *objp)
483 if (!xdr_nullstring(xdrs, &objp->policy)) {
489 if (!xdr_long(xdrs, &objp->pw_min_life)) {
492 if (!xdr_long(xdrs, &objp->pw_max_life)) {
495 if (!xdr_long(xdrs, &objp->pw_min_length)) {
498 if (!xdr_long(xdrs, &objp->pw_min_classes)) {
501 if (!xdr_long(xdrs, &objp->pw_history_num)) {
504 if (!xdr_long(xdrs, &objp->policy_refcnt)) {
511 xdr_cprinc_arg(XDR *xdrs, cprinc_arg *objp)
513 if (!xdr_ui_4(xdrs, &objp->api_version)) {
517 if (!xdr_kadm5_principal_ent_rec_v1(xdrs, &objp->rec)) {
521 if (!xdr_kadm5_principal_ent_rec(xdrs, &objp->rec)) {
525 if (!xdr_long(xdrs, &objp->mask)) {
528 if (!xdr_nullstring(xdrs, &objp->passwd)) {
535 xdr_cprinc3_arg(XDR *xdrs, cprinc3_arg *objp)
537 if (!xdr_ui_4(xdrs, &objp->api_version)) {
541 if (!xdr_kadm5_principal_ent_rec_v1(xdrs, &objp->rec)) {
545 if (!xdr_kadm5_principal_ent_rec(xdrs, &objp->rec)) {
549 if (!xdr_long(xdrs, &objp->mask)) {
552 if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tuple,
558 if (!xdr_nullstring(xdrs, &objp->passwd)) {
565 xdr_generic_ret(XDR *xdrs, generic_ret *objp)
567 if (!xdr_ui_4(xdrs, &objp->api_version)) {
570 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
578 xdr_dprinc_arg(XDR *xdrs, dprinc_arg *objp)
580 if (!xdr_ui_4(xdrs, &objp->api_version)) {
583 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
590 xdr_mprinc_arg(XDR *xdrs, mprinc_arg *objp)
592 if (!xdr_ui_4(xdrs, &objp->api_version)) {
596 if (!xdr_kadm5_principal_ent_rec_v1(xdrs, &objp->rec)) {
600 if (!xdr_kadm5_principal_ent_rec(xdrs, &objp->rec)) {
604 if (!xdr_long(xdrs, &objp->mask)) {
611 xdr_rprinc_arg(XDR *xdrs, rprinc_arg *objp)
613 if (!xdr_ui_4(xdrs, &objp->api_version)) {
616 if (!xdr_krb5_principal(xdrs, &objp->src)) {
619 if (!xdr_krb5_principal(xdrs, &objp->dest)) {
626 xdr_gprincs_arg(XDR *xdrs, gprincs_arg *objp)
628 if (!xdr_ui_4(xdrs, &objp->api_version)) {
631 if (!xdr_nullstring(xdrs, &objp->exp)) {
638 xdr_gprincs_ret(XDR *xdrs, gprincs_ret *objp)
640 if (!xdr_ui_4(xdrs, &objp->api_version)) {
643 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
647 if (!xdr_int(xdrs, &objp->count)) {
650 if (!xdr_array(xdrs, (caddr_t *) &objp->princs,
661 xdr_chpass_arg(XDR *xdrs, chpass_arg *objp)
663 if (!xdr_ui_4(xdrs, &objp->api_version)) {
666 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
669 if (!xdr_nullstring(xdrs, &objp->pass)) {
676 xdr_chpass3_arg(XDR *xdrs, chpass3_arg *objp)
678 if (!xdr_ui_4(xdrs, &objp->api_version)) {
681 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
684 if (!xdr_bool(xdrs, (bool_t *) &objp->keepold)) { /* SUNWresync121 XXX */
687 if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tuple,
693 if (!xdr_nullstring(xdrs, &objp->pass)) {
700 xdr_setv4key_arg(XDR *xdrs, setv4key_arg *objp)
704 if (!xdr_ui_4(xdrs, &objp->api_version)) {
707 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
710 if (!xdr_array(xdrs, (caddr_t *) &objp->keyblock,
719 xdr_setkey_arg(XDR *xdrs, setkey_arg *objp)
721 if (!xdr_ui_4(xdrs, &objp->api_version)) {
724 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
727 if (!xdr_array(xdrs, (caddr_t *) &objp->keyblocks,
736 xdr_setkey3_arg(XDR *xdrs, setkey3_arg *objp)
738 if (!xdr_ui_4(xdrs, &objp->api_version)) {
741 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
744 if (!xdr_bool(xdrs, (bool_t *) &objp->keepold)) { /* SUNWresync121 XXX */
747 if (!xdr_array(xdrs, (caddr_t *) &objp->ks_tuple,
752 if (!xdr_array(xdrs, (caddr_t *) &objp->keyblocks,
761 xdr_chrand_arg(XDR *xdrs, chrand_arg *objp)
763 if (!xdr_ui_4(xdrs, &objp->api_version)) {
766 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
773 xdr_chrand3_arg(XDR *xdrs, chrand3_arg *objp)
775 if (!xdr_ui_4(xdrs, &objp->api_version)) {
778 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
781 if (!xdr_bool(xdrs, (bool_t *) &objp->keepold)) { /* SUNWresync121 XXX */
784 if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tuple,
794 xdr_chrand_ret(XDR *xdrs, chrand_ret *objp)
796 if (!xdr_ui_4(xdrs, &objp->api_version)) {
799 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
804 if (!xdr_krb5_keyblock(xdrs, &objp->key)) {
810 if (!xdr_array(xdrs, (char **)&objp->keys, (unsigned int *)&objp->n_keys, ~0,
821 xdr_gprinc_arg(XDR *xdrs, gprinc_arg *objp)
823 if (!xdr_ui_4(xdrs, &objp->api_version)) {
826 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
830 !xdr_long(xdrs, &objp->mask)) {
838 xdr_gprinc_ret(XDR *xdrs, gprinc_ret *objp)
840 if (!xdr_ui_4(xdrs, &objp->api_version)) {
843 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
848 if (!xdr_kadm5_principal_ent_rec_v1(xdrs, &objp->rec)) {
852 if (!xdr_kadm5_principal_ent_rec(xdrs, &objp->rec)) {
862 xdr_cpol_arg(XDR *xdrs, cpol_arg *objp)
864 if (!xdr_ui_4(xdrs, &objp->api_version)) {
867 if (!xdr_kadm5_policy_ent_rec(xdrs, &objp->rec)) {
870 if (!xdr_long(xdrs, &objp->mask)) {
877 xdr_dpol_arg(XDR *xdrs, dpol_arg *objp)
879 if (!xdr_ui_4(xdrs, &objp->api_version)) {
882 if (!xdr_nullstring(xdrs, &objp->name)) {
889 xdr_mpol_arg(XDR *xdrs, mpol_arg *objp)
891 if (!xdr_ui_4(xdrs, &objp->api_version)) {
894 if (!xdr_kadm5_policy_ent_rec(xdrs, &objp->rec)) {
897 if (!xdr_long(xdrs, &objp->mask)) {
904 xdr_gpol_arg(XDR *xdrs, gpol_arg *objp)
906 if (!xdr_ui_4(xdrs, &objp->api_version)) {
909 if (!xdr_nullstring(xdrs, &objp->name)) {
916 xdr_gpol_ret(XDR *xdrs, gpol_ret *objp)
918 if (!xdr_ui_4(xdrs, &objp->api_version)) {
921 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
925 if (!xdr_kadm5_policy_ent_rec(xdrs, &objp->rec))
933 xdr_gpols_arg(XDR *xdrs, gpols_arg *objp)
935 if (!xdr_ui_4(xdrs, &objp->api_version)) {
938 if (!xdr_nullstring(xdrs, &objp->exp)) {
945 xdr_gpols_ret(XDR *xdrs, gpols_ret *objp)
947 if (!xdr_ui_4(xdrs, &objp->api_version)) {
950 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
954 if (!xdr_int(xdrs, &objp->count)) {
957 if (!xdr_array(xdrs, (caddr_t *) &objp->pols,
967 bool_t xdr_getprivs_ret(XDR *xdrs, getprivs_ret *objp)
969 if (!xdr_ui_4(xdrs, &objp->api_version)) {
972 if (! xdr_kadm5_ret_t(xdrs, &objp->code) ||
973 ! xdr_long(xdrs, &objp->privs))
980 xdr_krb5_principal(XDR *xdrs, krb5_principal *objp)
994 switch(xdrs->x_op) {
1000 if(!xdr_nullstring(xdrs, &p))
1005 if(!xdr_nullstring(xdrs, &p))
1025 xdr_krb5_octet(XDR *xdrs, krb5_octet *objp)
1027 if (!xdr_u_char(xdrs, objp))
1033 xdr_krb5_enctype(XDR *xdrs, krb5_enctype *objp)
1045 if (!xdr_u_int(xdrs, (unsigned int *) objp))
1051 xdr_krb5_salttype(XDR *xdrs, krb5_int32 *objp)
1053 if (!xdr_int(xdrs, (int32_t *) objp))
1059 xdr_krb5_keyblock(XDR *xdrs, krb5_keyblock *objp)
1064 if(!xdr_krb5_enctype(xdrs, &objp->enctype))
1066 if(!xdr_bytes(xdrs, (char **) &objp->contents, (unsigned int *)