/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | kdb_xdr.c | 48 if ((tmp = (krb5_octet *) malloc(new_tl_data->tl_data_length)) == NULL) 77 tl_data->tl_data_length = new_tl_data->tl_data_length; 79 memcpy(tmp, new_tl_data->tl_data_contents, tl_data->tl_data_length); 103 ret_tl_data->tl_data_length = 0; 118 tl_data.tl_data_length = sizeof(buf); 140 if (tl_data.tl_data_length != 4) { 182 tl_data.tl_data_length = unparse_mod_princ_size + 4; 214 if ((tl_data.tl_data_length < 5) || 215 (tl_data.tl_data_contents[tl_data.tl_data_length-1] != '\0'))
|
H A D | princ_xdr.c | 201 tl_data->tl_data_length, XDR_DECODE); in krb5_lookup_tl_kadm_data() 234 old_tl_data->tl_data_length, XDR_DECODE); 255 new_tl_data->tl_data_length = xdr_getpos(&xdrs); 257 if ((tmpbuf = (char *) malloc(new_tl_data->tl_data_length)) == NULL) 259 memcpy(tmpbuf, xdralloc_getdata(&xdrs), new_tl_data->tl_data_length);
|
H A D | ldap_misc.c | 615 currlen = tl_data->tl_data_length; 616 tl_data->tl_data_length += 1 + 2 + 2; 620 tl_data->tl_data_length); 646 currlen = tl_data->tl_data_length; 647 tl_data->tl_data_length += 1 + 2 + strlen(cptr); 651 tl_data->tl_data_length); 706 while (curr < (tl_data->tl_data_contents + tl_data->tl_data_length)) { 822 …if (((st=krb5_dbe_lookup_tl_data(context, entries, &tl_data)) != 0) || tl_data.tl_data_length == 0) 879 …if (((st=krb5_dbe_lookup_tl_data(context, entries, &tl_data)) != 0) || tl_data.tl_data_length == 0) 907 …if (((st=krb5_dbe_lookup_tl_data(context, entries, &tl_data)) != 0) || tl_data.tl_data_length == 0)
|
H A D | ldap_principal2.c | 59 (*out)->tl_data_length = in->bv_len - 2; in berval2tl_data() 61 ((*out)->tl_data_length * sizeof (krb5_octet)); in berval2tl_data() 69 memcpy ((*out)->tl_data_contents, in->bv_val + 2, (*out)->tl_data_length); in berval2tl_data() 435 (*out)->bv_len = in->tl_data_length + 2; in tl_data2berval() 444 memcpy ((*out)->bv_val + 2, in->tl_data_contents, in->tl_data_length); in tl_data2berval()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | kdb_xdr.c | 103 content->length += tl_data->tl_data_length; 202 krb5_kdb_encode_int16(tl_data->tl_data_length, nextloc); 205 memcpy(nextloc, tl_data->tl_data_contents, tl_data->tl_data_length); 206 nextloc += tl_data->tl_data_length; 377 krb5_kdb_decode_int16(nextloc, (*tl_data)->tl_data_length); 380 if ((sizeleft -= (*tl_data)->tl_data_length) < 0) { 385 malloc((*tl_data)->tl_data_length)) == NULL) { 389 memcpy((*tl_data)->tl_data_contents,nextloc,(*tl_data)->tl_data_length); 390 nextloc += (*tl_data)->tl_data_length;
|
/illumos-gate/usr/src/lib/krb5/kdb/ |
H A D | kdb_convert.c | 116 if ((first->tl_data_length == second->tl_data_length) && in find_changed_attrs() 120 first->tl_data_length)) != 0) { in find_changed_attrs() 547 ULOG_ENTRY(upd, final).av_tldata.av_tldata_val[tmpint].tl_data.tl_data_len = newtl->tl_data_length; in ulog_conv_2logentry() 548 ULOG_ENTRY(upd, final).av_tldata.av_tldata_val[tmpint].tl_data.tl_data_val = malloc(newtl->tl_data_length * sizeof (char)); in ulog_conv_2logentry() 553 (void) memcpy(ULOG_ENTRY(upd, final).av_tldata.av_tldata_val[tmpint].tl_data.tl_data_val, newtl->tl_data_contents, newtl->tl_data_length); in ulog_conv_2logentry() 768 newtl[j].tl_data_length = (krb5_int16)u.av_tldata.av_tldata_val[j].tl_data.tl_data_len; in ulog_conv_2dbentry() 770 newtl[j].tl_data_contents = malloc(newtl[j].tl_data_length * sizeof (krb5_octet)); in ulog_conv_2dbentry() 777 (void) memset(newtl[j].tl_data_contents, 0, (newtl[j].tl_data_length * sizeof (krb5_octet))); in ulog_conv_2dbentry() 778 (void) memcpy(newtl[j].tl_data_contents, u.av_tldata.av_tldata_val[j].tl_data.tl_data_val, newtl[j].tl_data_length); in ulog_conv_2dbentry() [all...] |
H A D | kdb5.c | 1014 if (((char *) curr->tl_data_contents)[curr->tl_data_length - 1] != in krb5_db_put_principal() 1568 if (tl_data.tl_data_length != 4) { 1600 ret_tl_data->tl_data_length = 0; 1648 tl_data.tl_data_length = unparse_mod_princ_size + 4; 1680 if ((tl_data.tl_data_length < 5) || 1681 (tl_data.tl_data_contents[tl_data.tl_data_length - 1] != '\0')) 1706 tl_data.tl_data_length = sizeof(buf); 1726 new_tl_data->tl_data_length)) == NULL) 1761 tl_data->tl_data_length = new_tl_data->tl_data_length; 1763 memcpy(tmp, new_tl_data->tl_data_contents, tl_data->tl_data_length);
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_kdb.c | 276 || (tl_data.tl_data_length == 0)) { in kdb_get_entry() 291 tl_data.tl_data_length, XDR_DECODE); in kdb_get_entry() 380 tl_data.tl_data_length = xdr_getpos(&xdrs); in kdb_put_entry()
|
H A D | svr_principal.c | 167 n->tl_data_contents = malloc(tl->tl_data_length); in dup_tl_data() 172 memcpy(n->tl_data_contents, tl->tl_data_contents, tl->tl_data_length); in dup_tl_data() 174 n->tl_data_length = tl->tl_data_length; in dup_tl_data()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/ |
H A D | dump.c | 894 (int) tlp->tl_data_length); 895 if (tlp->tl_data_length) 896 for (i=0; i<tlp->tl_data_length; i++) 1040 (int) tlp->tl_data_length); 1041 if (tlp->tl_data_length) 1043 i < tlp->tl_data_length; 1278 || (tl_data.tl_data_length == 0)) in dump_ov_princ() 1283 tl_data.tl_data_length, XDR_DECODE); in dump_ov_princ() 1736 pwchg->tl_data_length = 2214 tl->tl_data_length = (krb5_int16) t2; [all …]
|
H A D | ovload.c | 206 tl_data.tl_data_length = xdr_getpos(&xdrs);
|
/illumos-gate/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_realm.c | 2160 if ((tmp = (krb5_octet *) malloc (new_tl_data->tl_data_length)) == NULL) 2198 tl_data->tl_data_length = new_tl_data->tl_data_length; 2200 memcpy(tmp, new_tl_data->tl_data_contents, tl_data->tl_data_length); 2232 tl_data.tl_data_length = unparse_mod_princ_size + 4; 2347 tl_data->tl_data_length = 1 + 2 + 2 + 1 + 2 + 4; 2349 curr = tl_data->tl_data_contents = malloc(tl_data->tl_data_length);
|
/illumos-gate/usr/src/lib/krb5/kadm5/ |
H A D | kadm_rpc_xdr.c | 334 len = tl->tl_data_length; in xdr_krb5_tl_data() 356 tl2->tl_data_length = len; in xdr_krb5_tl_data()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/krb5/ |
H A D | kdb.h | 100 krb5_ui_2 tl_data_length; member
|
/illumos-gate/usr/src/cmd/krb5/krb5kdc/ |
H A D | kdc_preauth.c | 546 (*result)->data = malloc(tl->tl_data_length); in get_entry_tl_data() 552 memcpy((*result)->data, tl->tl_data_contents, tl->tl_data_length); in get_entry_tl_data()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/ |
H A D | kadmin.c | 973 tl_data->tl_data_length = strlen(argv[i])+1;
|