Lines Matching defs:objp

38 _xdr_kadm5_principal_ent_rec(XDR *xdrs, kadm5_principal_ent_rec *objp,
41 _xdr_kadm5_policy_ent_rec(XDR *xdrs, kadm5_policy_ent_rec *objp, int vers);
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)
69 if (*objp == NULL)
72 size = strlen(*objp) + 1;
80 *objp = NULL;
82 } else if (*objp == NULL) {
83 *objp = (char *) mem_alloc(size);
84 if (*objp == NULL) {
89 return (xdr_opaque(xdrs, *objp, size));
93 return (xdr_opaque(xdrs, *objp, size));
97 if (*objp != NULL)
98 mem_free(*objp, size);
99 *objp = NULL;
112 bool_t xdr_nulltype(XDR *xdrs, void **objp, xdrproc_t proc)
121 *objp = NULL;
124 return (*proc)(xdrs, objp);
127 if (*objp == NULL)
134 return (*proc)(xdrs, objp);
138 if (*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)
166 tmp = (unsigned char) *objp;
172 *objp = (krb5_kvno) tmp;
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)
215 tmp = (int) *objp;
220 *objp = (krb5_int16) tmp;
233 xdr_krb5_ui_2(XDR *xdrs, krb5_ui_2 *objp)
237 tmp = (unsigned int) *objp;
242 *objp = (krb5_ui_2) tmp;
272 bool_t xdr_krb5_key_data_nocontents(XDR *xdrs, krb5_key_data *objp)
282 memset(objp, 0, sizeof(krb5_key_data));
284 if (!xdr_krb5_int16(xdrs, &objp->key_data_ver)) {
287 if (!xdr_krb5_int16(xdrs, &objp->key_data_kvno)) {
290 if (!xdr_krb5_int16(xdrs, &objp->key_data_type[0])) {
293 if (objp->key_data_ver > 1) {
294 if (!xdr_krb5_int16(xdrs, &objp->key_data_type[1])) {
305 tmp = (unsigned int) objp->key_data_length[0];
306 if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[0],
310 tmp = (unsigned int) objp->key_data_length[1];
311 if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[1],
321 xdr_krb5_key_salt_tuple(XDR *xdrs, krb5_key_salt_tuple *objp)
323 if (!xdr_krb5_enctype(xdrs, &objp->ks_enctype))
325 if (!xdr_krb5_salttype(xdrs, &objp->ks_salttype))
393 xdr_kadm5_ret_t(XDR *xdrs, kadm5_ret_t *objp)
398 tmp = (uint32_t) *objp;
404 *objp = (kadm5_ret_t) tmp;
410 kadm5_principal_ent_rec *objp)
412 return _xdr_kadm5_principal_ent_rec(xdrs, objp, KADM5_API_VERSION_3);
416 _xdr_kadm5_principal_ent_rec(XDR *xdrs, kadm5_principal_ent_rec *objp,
421 if (!xdr_krb5_principal(xdrs, &objp->principal)) {
424 if (!xdr_krb5_timestamp(xdrs, &objp->princ_expire_time)) {
427 if (!xdr_krb5_timestamp(xdrs, &objp->last_pwd_change)) {
430 if (!xdr_krb5_timestamp(xdrs, &objp->pw_expiration)) {
433 if (!xdr_krb5_deltat(xdrs, &objp->max_life)) {
436 if (!xdr_nulltype(xdrs, (void **) &objp->mod_name,
440 if (!xdr_krb5_timestamp(xdrs, &objp->mod_date)) {
443 if (!xdr_krb5_flags(xdrs, &objp->attributes)) {
446 if (!xdr_krb5_kvno(xdrs, &objp->kvno)) {
449 if (!xdr_krb5_kvno(xdrs, &objp->mkvno)) {
452 if (!xdr_nullstring(xdrs, &objp->policy)) {
455 if (!xdr_long(xdrs, &objp->aux_attributes)) {
458 if (!xdr_krb5_deltat(xdrs, &objp->max_renewable_life)) {
461 if (!xdr_krb5_timestamp(xdrs, &objp->last_success)) {
464 if (!xdr_krb5_timestamp(xdrs, &objp->last_failed)) {
467 if (!xdr_krb5_kvno(xdrs, &objp->fail_auth_count)) {
470 if (!xdr_krb5_int16(xdrs, &objp->n_key_data)) {
473 if (!xdr_krb5_int16(xdrs, &objp->n_tl_data)) {
476 if (!xdr_nulltype(xdrs, (void **) &objp->tl_data,
480 n = objp->n_key_data;
481 if (!xdr_array(xdrs, (caddr_t *) &objp->key_data,
491 _xdr_kadm5_policy_ent_rec(XDR *xdrs, kadm5_policy_ent_rec *objp, int vers)
493 if (!xdr_nullstring(xdrs, &objp->policy)) {
499 if (!xdr_long(xdrs, &objp->pw_min_life)) {
502 if (!xdr_long(xdrs, &objp->pw_max_life)) {
505 if (!xdr_long(xdrs, &objp->pw_min_length)) {
508 if (!xdr_long(xdrs, &objp->pw_min_classes)) {
511 if (!xdr_long(xdrs, &objp->pw_history_num)) {
514 if (!xdr_long(xdrs, &objp->policy_refcnt)) {
518 if (!xdr_krb5_kvno(xdrs, &objp->pw_max_fail))
520 if (!xdr_krb5_deltat(xdrs, &objp->pw_failcnt_interval))
522 if (!xdr_krb5_deltat(xdrs, &objp->pw_lockout_duration))
525 objp->pw_max_fail = 0;
526 objp->pw_failcnt_interval = 0;
527 objp->pw_lockout_duration = 0;
533 xdr_kadm5_policy_ent_rec(XDR *xdrs, kadm5_policy_ent_rec *objp)
535 return _xdr_kadm5_policy_ent_rec(xdrs, objp, KADM5_API_VERSION_3);
539 xdr_cprinc_arg(XDR *xdrs, cprinc_arg *objp)
541 if (!xdr_ui_4(xdrs, &objp->api_version)) {
544 if (!_xdr_kadm5_principal_ent_rec(xdrs, &objp->rec,
545 objp->api_version)) {
548 if (!xdr_long(xdrs, &objp->mask)) {
551 if (!xdr_nullstring(xdrs, &objp->passwd)) {
558 xdr_cprinc3_arg(XDR *xdrs, cprinc3_arg *objp)
560 if (!xdr_ui_4(xdrs, &objp->api_version)) {
563 if (!_xdr_kadm5_principal_ent_rec(xdrs, &objp->rec,
564 objp->api_version)) {
567 if (!xdr_long(xdrs, &objp->mask)) {
570 if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tuple,
571 (unsigned int *)&objp->n_ks_tuple, ~0,
576 if (!xdr_nullstring(xdrs, &objp->passwd)) {
583 xdr_generic_ret(XDR *xdrs, generic_ret *objp)
585 if (!xdr_ui_4(xdrs, &objp->api_version)) {
588 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
596 xdr_dprinc_arg(XDR *xdrs, dprinc_arg *objp)
598 if (!xdr_ui_4(xdrs, &objp->api_version)) {
601 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
608 xdr_mprinc_arg(XDR *xdrs, mprinc_arg *objp)
610 if (!xdr_ui_4(xdrs, &objp->api_version)) {
613 if (!_xdr_kadm5_principal_ent_rec(xdrs, &objp->rec,
614 objp->api_version)) {
617 if (!xdr_long(xdrs, &objp->mask)) {
624 xdr_rprinc_arg(XDR *xdrs, rprinc_arg *objp)
626 if (!xdr_ui_4(xdrs, &objp->api_version)) {
629 if (!xdr_krb5_principal(xdrs, &objp->src)) {
632 if (!xdr_krb5_principal(xdrs, &objp->dest)) {
639 xdr_gprincs_arg(XDR *xdrs, gprincs_arg *objp)
641 if (!xdr_ui_4(xdrs, &objp->api_version)) {
644 if (!xdr_nullstring(xdrs, &objp->exp)) {
651 xdr_gprincs_ret(XDR *xdrs, gprincs_ret *objp)
653 if (!xdr_ui_4(xdrs, &objp->api_version)) {
656 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
659 if (objp->code == KADM5_OK) {
660 if (!xdr_int(xdrs, &objp->count)) {
663 if (!xdr_array(xdrs, (caddr_t *) &objp->princs,
664 (unsigned int *) &objp->count, ~0,
674 xdr_chpass_arg(XDR *xdrs, chpass_arg *objp)
676 if (!xdr_ui_4(xdrs, &objp->api_version)) {
679 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
682 if (!xdr_nullstring(xdrs, &objp->pass)) {
689 xdr_chpass3_arg(XDR *xdrs, chpass3_arg *objp)
691 if (!xdr_ui_4(xdrs, &objp->api_version)) {
694 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
697 if (!xdr_krb5_boolean(xdrs, &objp->keepold)) {
700 if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tuple,
701 (unsigned int*)&objp->n_ks_tuple, ~0,
706 if (!xdr_nullstring(xdrs, &objp->pass)) {
713 xdr_setv4key_arg(XDR *xdrs, setv4key_arg *objp)
717 if (!xdr_ui_4(xdrs, &objp->api_version)) {
720 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
723 if (!xdr_array(xdrs, (caddr_t *) &objp->keyblock,
732 xdr_setkey_arg(XDR *xdrs, setkey_arg *objp)
734 if (!xdr_ui_4(xdrs, &objp->api_version)) {
737 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
740 if (!xdr_array(xdrs, (caddr_t *) &objp->keyblocks,
741 (unsigned int *) &objp->n_keys, ~0,
749 xdr_setkey3_arg(XDR *xdrs, setkey3_arg *objp)
751 if (!xdr_ui_4(xdrs, &objp->api_version)) {
754 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
757 if (!xdr_krb5_boolean(xdrs, &objp->keepold)) {
760 if (!xdr_array(xdrs, (caddr_t *) &objp->ks_tuple,
761 (unsigned int *) &objp->n_ks_tuple, ~0,
765 if (!xdr_array(xdrs, (caddr_t *) &objp->keyblocks,
766 (unsigned int *) &objp->n_keys, ~0,
774 xdr_chrand_arg(XDR *xdrs, chrand_arg *objp)
776 if (!xdr_ui_4(xdrs, &objp->api_version)) {
779 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
786 xdr_chrand3_arg(XDR *xdrs, chrand3_arg *objp)
788 if (!xdr_ui_4(xdrs, &objp->api_version)) {
791 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
794 if (!xdr_krb5_boolean(xdrs, &objp->keepold)) {
797 if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tuple,
798 (unsigned int*)&objp->n_ks_tuple, ~0,
807 xdr_chrand_ret(XDR *xdrs, chrand_ret *objp)
809 if (!xdr_ui_4(xdrs, &objp->api_version)) {
812 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
815 if (objp->code == KADM5_OK) {
817 if (!xdr_array(xdrs, (char **)&objp->keys, (unsigned int *)&objp->n_keys, ~0,
826 xdr_gprinc_arg(XDR *xdrs, gprinc_arg *objp)
828 if (!xdr_ui_4(xdrs, &objp->api_version)) {
831 if (!xdr_krb5_principal(xdrs, &objp->princ)) {
834 if (!xdr_long(xdrs, &objp->mask)) {
842 xdr_gprinc_ret(XDR *xdrs, gprinc_ret *objp)
844 if (!xdr_ui_4(xdrs, &objp->api_version)) {
847 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
850 if(objp->code == KADM5_OK) {
851 if (!_xdr_kadm5_principal_ent_rec(xdrs, &objp->rec,
852 objp->api_version)) {
861 xdr_cpol_arg(XDR *xdrs, cpol_arg *objp)
863 if (!xdr_ui_4(xdrs, &objp->api_version)) {
866 if (!_xdr_kadm5_policy_ent_rec(xdrs, &objp->rec,
867 objp->api_version)) {
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,
895 objp->api_version)) {
898 if (!xdr_long(xdrs, &objp->mask)) {
905 xdr_gpol_arg(XDR *xdrs, gpol_arg *objp)
907 if (!xdr_ui_4(xdrs, &objp->api_version)) {
910 if (!xdr_nullstring(xdrs, &objp->name)) {
917 xdr_gpol_ret(XDR *xdrs, gpol_ret *objp)
919 if (!xdr_ui_4(xdrs, &objp->api_version)) {
922 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
925 if(objp->code == KADM5_OK) {
926 if (!_xdr_kadm5_policy_ent_rec(xdrs, &objp->rec,
927 objp->api_version))
935 xdr_gpols_arg(XDR *xdrs, gpols_arg *objp)
937 if (!xdr_ui_4(xdrs, &objp->api_version)) {
940 if (!xdr_nullstring(xdrs, &objp->exp)) {
947 xdr_gpols_ret(XDR *xdrs, gpols_ret *objp)
949 if (!xdr_ui_4(xdrs, &objp->api_version)) {
952 if (!xdr_kadm5_ret_t(xdrs, &objp->code)) {
955 if (objp->code == KADM5_OK) {
956 if (!xdr_int(xdrs, &objp->count)) {
959 if (!xdr_array(xdrs, (caddr_t *) &objp->pols,
960 (unsigned int *) &objp->count, ~0,
969 bool_t xdr_getprivs_ret(XDR *xdrs, getprivs_ret *objp)
971 if (!xdr_ui_4(xdrs, &objp->api_version)) {
974 if (! xdr_kadm5_ret_t(xdrs, &objp->code) ||
975 ! xdr_long(xdrs, &objp->privs))
982 xdr_krb5_principal(XDR *xdrs, krb5_principal *objp)
998 if (*objp) {
999 if((ret = krb5_unparse_name(context, *objp, &p)) != 0)
1013 *objp = pr;
1016 *objp = NULL;
1019 if(*objp != NULL)
1020 krb5_free_principal(context, *objp);
1027 xdr_krb5_octet(XDR *xdrs, krb5_octet *objp)
1029 if (!xdr_u_char(xdrs, objp))
1035 xdr_krb5_enctype(XDR *xdrs, krb5_enctype *objp)
1047 if (!xdr_u_int(xdrs, (unsigned int *) objp))
1053 xdr_krb5_salttype(XDR *xdrs, krb5_int32 *objp)
1055 if (!xdr_int(xdrs, (int32_t *) objp))
1061 xdr_krb5_keyblock(XDR *xdrs, krb5_keyblock *objp)
1066 if(!xdr_krb5_enctype(xdrs, &objp->enctype))
1068 if(!xdr_bytes(xdrs, (char **) &objp->contents, (unsigned int *)
1069 &objp->length, ~0))