Lines Matching refs:princ

75 	if ((current->princ->type == new->princ->type) &&  in find_changed_attrs()
76 (current->princ->length == new->princ->length)) { in find_changed_attrs()
77 if ((current->princ->realm.length == in find_changed_attrs()
78 new->princ->realm.length) && in find_changed_attrs()
79 strncmp(current->princ->realm.data, in find_changed_attrs()
80 new->princ->realm.data, in find_changed_attrs()
81 current->princ->realm.length)) { in find_changed_attrs()
82 for (j = 0; j < current->princ->length; j++) { in find_changed_attrs()
83 if ((current->princ->data[j].data != NULL) && in find_changed_attrs()
84 (strncmp(current->princ->data[j].data, in find_changed_attrs()
85 new->princ->data[j].data, in find_changed_attrs()
86 current->princ->data[j].length))) { in find_changed_attrs()
160 conv_princ_2ulog(krb5_principal princ, kdb_incr_update_t *upd, in conv_princ_2ulog() argument
166 if ((upd == NULL) || !princ) in conv_princ_2ulog()
173 p->k_nametype = (int32_t)princ->type; in conv_princ_2ulog()
175 if (data_to_utf8str(&p->k_realm, princ->realm) < 0) { in conv_princ_2ulog()
179 p->k_components.k_components_len = princ->length; in conv_princ_2ulog()
182 = malloc(princ->length * sizeof (kdbe_data_t)); in conv_princ_2ulog()
189 memset(components, 0, princ->length * sizeof(kdbe_data_t)); in conv_princ_2ulog()
190 for (i = 0; i < princ->length; i++) in conv_princ_2ulog()
192 for (i = 0; i < princ->length; i++) { in conv_princ_2ulog()
193 components[i].k_magic = princ->data[i].magic; in conv_princ_2ulog()
195 princ->data[i]) < 0) { in conv_princ_2ulog()
245 krb5_principal princ; in conv_princ_2db() local
248 princ = calloc(1, sizeof (krb5_principal_data)); in conv_princ_2db()
249 if (princ == NULL) { in conv_princ_2db()
252 princ->length = 0; in conv_princ_2db()
253 princ->data = NULL; in conv_princ_2db()
257 princ->type = (krb5_int32) kdbe_princ->k_nametype; in conv_princ_2db()
258 princ->realm.data = NULL; in conv_princ_2db()
259 set_from_utf8str(&princ->realm, kdbe_princ->k_realm); in conv_princ_2db()
260 if (princ->realm.data == NULL) in conv_princ_2db()
263 princ->data = calloc(kdbe_princ->k_components.k_components_len, in conv_princ_2db()
265 if (princ->data == NULL) in conv_princ_2db()
268 princ->data[i].data = NULL; in conv_princ_2db()
269 princ->length = (krb5_int32)kdbe_princ->k_components.k_components_len; in conv_princ_2db()
271 for (i = 0; i < princ->length; i++) { in conv_princ_2db()
272 princ->data[i].magic = components[i].k_magic; in conv_princ_2db()
273 set_from_utf8str(&princ->data[i], components[i].k_data); in conv_princ_2db()
274 if (princ->data[i].data == NULL) in conv_princ_2db()
278 return princ; in conv_princ_2db()
280 krb5_free_principal(context, princ); in conv_princ_2db()
331 if ((ret = krb5_db_get_principal_nolock(context, ent->princ, &curr, in ulog_conv_2logentry()
440 if (ent->princ->length > 0) { in ulog_conv_2logentry()
443 if ((ret = conv_princ_2ulog(ent->princ, in ulog_conv_2logentry()
703 krb5_free_principal(context, ent->princ); in ulog_conv_2dbentry()
704 ent->princ = tmpprinc; in ulog_conv_2dbentry()