| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/hdb/ |
| D | print.c | 219 entry2string_int (krb5_context context, krb5_storage *sp, hdb_entry *ent) in entry2string_int() argument 226 ret = krb5_unparse_name(context, ent->principal, &p); in entry2string_int() 232 append_string(context, sp, "%d", ent->kvno); in entry2string_int() 234 for(i = 0; i < ent->keys.len; i++){ in entry2string_int() 236 if(ent->keys.val[i].mkvno) in entry2string_int() 238 *ent->keys.val[i].mkvno, in entry2string_int() 239 ent->keys.val[i].key.keytype); in entry2string_int() 242 ent->keys.val[i].key.keytype); in entry2string_int() 244 append_hex(context, sp, 0, 0, &ent->keys.val[i].key.keyvalue); in entry2string_int() 247 if(ent->keys.val[i].salt){ in entry2string_int() [all …]
|
| D | hdb-ldap.c | 52 int flags, hdb_entry_ex * ent); 393 LDAP_entry2mods(krb5_context context, HDB * db, hdb_entry_ex * ent, in LDAP_entry2mods() argument 484 krb5_principal_compare(context, ent->entry.principal, orig.entry.principal) in LDAP_entry2mods() 489 ret = krb5_unparse_name(context, ent->entry.principal, &tmp); in LDAP_entry2mods() 503 ret = krb5_unparse_name_short(context, ent->entry.principal, &tmp); in LDAP_entry2mods() 515 if (is_heimdal_entry && (ent->entry.kvno != orig.entry.kvno || is_new_entry)) { in LDAP_entry2mods() 518 ent->entry.kvno); in LDAP_entry2mods() 523 if (is_heimdal_entry && ent->entry.extensions) { in LDAP_entry2mods() 534 for (i = 0; i < ent->entry.extensions->len; i++) { in LDAP_entry2mods() 538 … ASN1_MALLOC_ENCODE(HDB_extension, buf, size, &ent->entry.extensions->val[i], &sz, ret); in LDAP_entry2mods() [all …]
|
| /netbsd/src/external/ibm-public/postfix/dist/src/tlsmgr/ |
| D | tlsmgr.c | 519 TLSMGR_SCACHE *ent; in tlsmgr_loop() local 543 for (ent = cache_table; ent->cache_label; ++ent) { in tlsmgr_loop() 544 if (ent->cache_info && ent->cache_active) in tlsmgr_loop() 545 active |= ent->cache_active = in tlsmgr_loop() 546 tls_scache_sequence(ent->cache_info, DICT_SEQ_FUN_NEXT, in tlsmgr_loop() 612 TLSMGR_SCACHE *ent; in tlsmgr_service() local 647 for (ent = cache_table; ent->cache_label; ++ent) in tlsmgr_service() 648 if (strcmp(ent->cache_label, STR(cache_type)) == 0) in tlsmgr_service() 650 if (ent->cache_label == 0) { in tlsmgr_service() 654 } else if (ent->cache_info == 0) { in tlsmgr_service() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/kadm5/ |
| D | get_s.c | 43 add_tl_data(kadm5_principal_ent_t ent, int16_t type, in add_tl_data() argument 61 tl->tl_data_next = ent->tl_data; in add_tl_data() 62 ent->tl_data = tl; in add_tl_data() 63 ent->n_tl_data++; in add_tl_data() 127 hdb_entry_ex ent; in kadm5_s_get_principal() local 129 memset(&ent, 0, sizeof(ent)); in kadm5_s_get_principal() 151 HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in kadm5_s_get_principal() 159 ret = krb5_copy_principal(context->context, ent.entry.principal, in kadm5_s_get_principal() 163 if(mask & KADM5_PRINC_EXPIRE_TIME && ent.entry.valid_end) in kadm5_s_get_principal() 164 out->princ_expire_time = *ent.entry.valid_end; in kadm5_s_get_principal() [all …]
|
| D | chpass_s.c | 50 hdb_entry_ex ent; in change() local 56 memset(&ent, 0, sizeof(ent)); in change() 68 … HDB_F_DECRYPT|HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in change() 77 ret = hdb_add_current_keys_to_history(context->context, &ent.entry); in change() 84 &ent, password, cond); in change() 89 num_keys = ent.entry.keys.len; in change() 90 keys = ent.entry.keys.val; in change() 92 ent.entry.keys.len = 0; in change() 93 ent.entry.keys.val = NULL; in change() 95 ret = _kadm5_set_keys(context, &ent.entry, n_ks_tuple, ks_tuple, in change() [all …]
|
| D | ent_setup.c | 74 hdb_entry_ex *ent, in perform_tl_data() argument 85 ret = hdb_entry_set_password(context, db, &ent->entry, pw); in perform_tl_data() 98 ret = hdb_entry_set_pw_change_time(context, &ent->entry, t); in perform_tl_data() 110 ret = hdb_replace_extension(context, &ent->entry, &ext); in perform_tl_data() 119 default_flags(hdb_entry_ex *ent, int server) in default_flags() argument 121 ent->entry.flags.client = 1; in default_flags() 122 ent->entry.flags.server = !!server; in default_flags() 123 ent->entry.flags.forwardable = 1; in default_flags() 124 ent->entry.flags.proxiable = 1; in default_flags() 125 ent->entry.flags.renewable = 1; in default_flags() [all …]
|
| D | set_keys.c | 46 hdb_entry *ent, in _kadm5_set_keys() argument 56 ent->principal, in _kadm5_set_keys() 63 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val); in _kadm5_set_keys() 64 ent->keys.val = keys; in _kadm5_set_keys() 65 ent->keys.len = num_keys; in _kadm5_set_keys() 67 hdb_entry_set_pw_change_time(context->context, ent, 0); in _kadm5_set_keys() 73 ent, password); in _kadm5_set_keys() 104 hdb_entry *ent, in _kadm5_set_keys2() argument 123 ret = hdb_clear_extension(context->context, ent, in _kadm5_set_keys2() 127 free_Keys(&ent->keys); in _kadm5_set_keys2() [all …]
|
| D | rename_s.c | 47 hdb_entry_ex ent; in kadm5_s_rename_principal() local 50 memset(&ent, 0, sizeof(ent)); in kadm5_s_rename_principal() 64 source, HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in kadm5_s_rename_principal() 67 oldname = ent.entry.principal; in kadm5_s_rename_principal() 68 ret = _kadm5_set_modifier(context, &ent.entry); in kadm5_s_rename_principal() 80 for(i = 0; i < ent.entry.keys.len; i++){ in kadm5_s_rename_principal() 81 if(ent.entry.keys.val[i].salt == NULL){ in kadm5_s_rename_principal() 82 ent.entry.keys.val[i].salt = in kadm5_s_rename_principal() 83 malloc(sizeof(*ent.entry.keys.val[i].salt)); in kadm5_s_rename_principal() 84 if (ent.entry.keys.val[i].salt == NULL) in kadm5_s_rename_principal() [all …]
|
| D | create_s.c | 62 hdb_entry_ex *ent, in create_principal() argument 70 memset(ent, 0, sizeof(*ent)); in create_principal() 79 &ent->entry.principal); in create_principal() 93 ent, mask | def_mask, in create_principal() 101 ent->entry.created_by.time = time(NULL); in create_principal() 104 &ent->entry.created_by.principal); in create_principal() 113 hdb_entry_ex ent; in kadm5_s_create_principal_with_key() local 122 ret = create_principal(context, princ, mask, &ent, in kadm5_s_create_principal_with_key() 135 hdb_free_entry(context->context, &ent); in kadm5_s_create_principal_with_key() 144 ret = hdb_seal_keys(context->context, context->db, &ent.entry); in kadm5_s_create_principal_with_key() [all …]
|
| D | setkey3_s.c | 50 hdb_entry_ex ent; in kadm5_s_setkey_principal_3() local 53 memset(&ent, 0, sizeof(ent)); in kadm5_s_setkey_principal_3() 67 HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in kadm5_s_setkey_principal_3() 76 ret = hdb_add_current_keys_to_history(context->context, &ent.entry); in kadm5_s_setkey_principal_3() 78 ret = hdb_clear_extension(context->context, &ent.entry, in kadm5_s_setkey_principal_3() 91 free_Keys(&ent.entry.keys); in kadm5_s_setkey_principal_3() 110 if ((ret = add_Keys(&ent.entry.keys, &k)) != 0) in kadm5_s_setkey_principal_3() 116 ent.entry.kvno++; in kadm5_s_setkey_principal_3() 117 ent.entry.flags.require_pwchange = 0; in kadm5_s_setkey_principal_3() 118 hdb_entry_set_pw_change_time(context->context, &ent.entry, 0); in kadm5_s_setkey_principal_3() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/opcodes/ |
| D | aarch64-gen.c | 69 opcode_node* ent = malloc (sizeof (opcode_node)); in new_opcode_node() local 71 if (!ent) in new_opcode_node() 74 ent->opcode = 0; in new_opcode_node() 75 ent->mask = 0; in new_opcode_node() 76 ent->index = -1; in new_opcode_node() 77 ent->next = NULL; in new_opcode_node() 79 return ent; in new_opcode_node() 129 const struct aarch64_opcode *ent = table; in read_table() local 134 if (!ent->name) in read_table() 149 assert (!pseudo_opcode_p (ent) || alias_opcode_p (ent)); in read_table() [all …]
|
| D | ia64-gen.c | 1732 struct disent *ent; in add_dis_table_ent() local 1736 ent = which; in add_dis_table_ent() 1738 ent->nextcnt++; in add_dis_table_ent() 1739 while (ent->nexte != NULL) in add_dis_table_ent() 1740 ent = ent->nexte; in add_dis_table_ent() 1742 ent = (ent->nexte = tmalloc (struct disent)); in add_dis_table_ent() 1746 ent = tmalloc (struct disent); in add_dis_table_ent() 1747 ent->next_ent = disinsntable; in add_dis_table_ent() 1748 disinsntable = ent; in add_dis_table_ent() 1749 which = ent; in add_dis_table_ent() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/opcodes/ |
| D | aarch64-gen.c | 69 opcode_node* ent = malloc (sizeof (opcode_node)); in new_opcode_node() local 71 if (!ent) in new_opcode_node() 74 ent->opcode = 0; in new_opcode_node() 75 ent->mask = 0; in new_opcode_node() 76 ent->index = -1; in new_opcode_node() 77 ent->next = NULL; in new_opcode_node() 79 return ent; in new_opcode_node() 129 const struct aarch64_opcode *ent = table; in read_table() local 133 if (!ent->name) in read_table() 146 assert (!pseudo_opcode_p (ent) || alias_opcode_p (ent)); in read_table() [all …]
|
| D | ia64-gen.c | 1732 struct disent *ent; in add_dis_table_ent() local 1736 ent = which; in add_dis_table_ent() 1738 ent->nextcnt++; in add_dis_table_ent() 1739 while (ent->nexte != NULL) in add_dis_table_ent() 1740 ent = ent->nexte; in add_dis_table_ent() 1742 ent = (ent->nexte = tmalloc (struct disent)); in add_dis_table_ent() 1746 ent = tmalloc (struct disent); in add_dis_table_ent() 1747 ent->next_ent = disinsntable; in add_dis_table_ent() 1748 disinsntable = ent; in add_dis_table_ent() 1749 which = ent; in add_dis_table_ent() [all …]
|
| /netbsd/src/sys/dev/wsfont/ |
| D | wsfont.c | 443 struct font *ent; in wsfont_enum() local 445 TAILQ_FOREACH(ent, &list, chain) { in wsfont_enum() 446 f = ent->font; in wsfont_enum() 580 struct font *ent; in wsfont_init() local 589 ent = builtin_fonts; in wsfont_init() 591 for (i = 0; builtin_fonts[i].font != NULL; i++, ent++) { in wsfont_init() 593 ent->cookie = wsfont_make_cookie(ident, in wsfont_init() 594 ent->font->bitorder, ent->font->byteorder); in wsfont_init() 595 TAILQ_INSERT_TAIL(&list, ent, chain); in wsfont_init() 602 struct font *ent; in wsfont_find0() local [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/x509/ |
| D | by_dir.c | 151 static void by_dir_entry_free(BY_DIR_ENTRY *ent) in by_dir_entry_free() argument 153 OPENSSL_free(ent->dir); in by_dir_entry_free() 154 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free() 155 OPENSSL_free(ent); in by_dir_entry_free() 183 BY_DIR_ENTRY *ent; in add_cert_dir() local 191 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j); in add_cert_dir() 192 if (strlen(ent->dir) == len && strncmp(ent->dir, ss, len) == 0) in add_cert_dir() 204 ent = OPENSSL_malloc(sizeof(*ent)); in add_cert_dir() 205 if (ent == NULL) { in add_cert_dir() 209 ent->dir_type = type; in add_cert_dir() [all …]
|
| /netbsd/src/sys/net/npf/ |
| D | npf_tableset.c | 318 npf_tblent_t *ent; in table_ipset_flush() local 320 while ((ent = LIST_FIRST(&t->t_list)) != NULL) { in table_ipset_flush() 321 thmap_del(t->t_map, &ent->te_addr, ent->te_alen); in table_ipset_flush() 322 LIST_REMOVE(ent, te_listent); in table_ipset_flush() 323 pool_cache_put(tblent_cache, ent); in table_ipset_flush() 331 npf_tblent_t *ent; in table_tree_flush() local 333 while ((ent = LIST_FIRST(&t->t_list)) != NULL) { in table_tree_flush() 334 LIST_REMOVE(ent, te_listent); in table_tree_flush() 335 pool_cache_put(tblent_cache, ent); in table_tree_flush() 344 npf_tblent_t *ent; in table_ifaddr_flush() local [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/kadmin/ |
| D | init.c | 51 kadm5_principal_ent_rec ent; in create_random_entry() local 69 memset(&ent, 0, sizeof(ent)); in create_random_entry() 70 ent.principal = princ; in create_random_entry() 73 ent.max_life = max_life; in create_random_entry() 77 ent.max_renewable_life = max_rlife; in create_random_entry() 80 ent.attributes |= attributes | KRB5_KDB_DISALLOW_ALL_TIX; in create_random_entry() 84 ret = kadm5_create_principal(kadm_handle, &ent, mask, password); in create_random_entry() 103 ret = kadm5_get_principal(kadm_handle, princ, &ent, in create_random_entry() 110 ent.attributes &= (~KRB5_KDB_DISALLOW_ALL_TIX); in create_random_entry() 111 ent.kvno = 1; in create_random_entry() [all …]
|
| D | rpc.c | 396 kadm5_principal_ent_rec *ent) in store_principal_ent() argument 400 CHECK(store_principal_xdr(contextp, sp, ent->principal)); in store_principal_ent() 401 CHECK(krb5_store_uint32(sp, ent->princ_expire_time)); in store_principal_ent() 402 CHECK(krb5_store_uint32(sp, ent->pw_expiration)); in store_principal_ent() 403 CHECK(krb5_store_uint32(sp, ent->last_pwd_change)); in store_principal_ent() 404 CHECK(krb5_store_uint32(sp, ent->max_life)); in store_principal_ent() 405 CHECK(krb5_store_int32(sp, ent->mod_name == NULL)); in store_principal_ent() 406 if (ent->mod_name) in store_principal_ent() 407 CHECK(store_principal_xdr(contextp, sp, ent->mod_name)); in store_principal_ent() 408 CHECK(krb5_store_uint32(sp, ent->mod_date)); in store_principal_ent() [all …]
|
| D | check.c | 44 get_check_entry(const char *name, kadm5_principal_ent_rec *ent) in get_check_entry() argument 55 memset(ent, 0, sizeof(*ent)); in get_check_entry() 56 ret = kadm5_get_principal(kadm_handle, principal, ent, KADM5_ATTRIBUTES); in get_check_entry() 108 kadm5_principal_ent_rec ent; in check() local 138 ret = get_check_entry(p, &ent); in check() 147 kadm5_free_principal_ent(kadm_handle, &ent); in check() 158 ret = get_check_entry(p, &ent); in check() 167 kadm5_free_principal_ent(kadm_handle, &ent); in check() 178 ret = get_check_entry(p, &ent); in check() 187 kadm5_free_principal_ent(kadm_handle, &ent); in check() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/bfd/ |
| D | elf-eh-frame.c | 329 next_cie_fde_offset (const struct eh_cie_fde *ent, in next_cie_fde_offset() argument 333 while (++ent < last) in next_cie_fde_offset() 335 if (!ent->removed) in next_cie_fde_offset() 336 return ent->new_offset; in next_cie_fde_offset() 1149 struct eh_cie_fde *ent, elf_gc_mark_hook_fn gc_mark_hook, in mark_entry() argument 1153 for (cookie->rel = cookie->rels + ent->reloc_index; in mark_entry() 1155 && cookie->rel->r_offset < ent->offset + ent->size; in mark_entry() 1338 struct eh_cie_fde *ent = NULL; in offset_adjust() local 1349 ent = &sec_info->entry[mid]; in offset_adjust() 1350 if (offset < ent->offset) in offset_adjust() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/bfd/ |
| D | elf-eh-frame.c | 329 next_cie_fde_offset (const struct eh_cie_fde *ent, in next_cie_fde_offset() argument 333 while (++ent < last) in next_cie_fde_offset() 335 if (!ent->removed) in next_cie_fde_offset() 336 return ent->new_offset; in next_cie_fde_offset() 1149 struct eh_cie_fde *ent, elf_gc_mark_hook_fn gc_mark_hook, in mark_entry() argument 1153 for (cookie->rel = cookie->rels + ent->reloc_index; in mark_entry() 1155 && cookie->rel->r_offset < ent->offset + ent->size; in mark_entry() 1338 struct eh_cie_fde *ent = NULL; in offset_adjust() local 1349 ent = &sec_info->entry[mid]; in offset_adjust() 1350 if (offset < ent->offset) in offset_adjust() [all …]
|
| /netbsd/src/sys/arch/ia64/ia64/ |
| D | consinit.c | 150 struct dig64_pcdp_entry *ent = &desc->pcdp; in pcdp_cninit() local 152 if (ent->specs.type == DIG64_PCDP_SPEC_PCI) { in pcdp_cninit() 153 struct dig64_pci_spec *spec = ent->specs.pci; in pcdp_cninit() 167 struct dig64_hcdp_entry *ent = &desc->uart; in pcdp_cninit() local 171 ((uint64_t)ent->baud_high << 32) | ent->baud_low; in pcdp_cninit() 175 switch (ent->databits) { in pcdp_cninit() 190 ent->databits); in pcdp_cninit() 192 switch (ent->parity) { in pcdp_cninit() 207 ent->parity); in pcdp_cninit() 209 if (ent->stopbits == DIG64_HCDP_STOPBITS_1) in pcdp_cninit() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/libgomp/ |
| D | ordered.c | 269 unsigned long ent, num_ents, elt_sz, shift_sz; in gomp_doacross_init() local 353 for (ent = 0; ent < num_ents; ent++) in gomp_doacross_init() 354 *(unsigned long *) (doacross->array + ent * elt_sz) = 0; in gomp_doacross_init() 357 for (ent = 0; ent < num_ents; ent++) in gomp_doacross_init() 358 memset (doacross->array + ent * elt_sz, '\0', in gomp_doacross_init() 379 unsigned long ent; in GOMP_doacross_post() local 390 ent = thr->ts.team_id; in GOMP_doacross_post() 392 ent = counts[0]; in GOMP_doacross_post() 394 ent = counts[0] / doacross->chunk_size; in GOMP_doacross_post() 396 + ent * doacross->elt_sz); in GOMP_doacross_post() [all …]
|
| /netbsd/src/sbin/gpt/ |
| D | show.c | 121 struct gpt_ent *ent; in print_part_type() local 124 uint8_t utfbuf[__arraycount(ent->ent_name) * 3 + 1]; in print_part_type() 180 ent = map_data; in print_part_type() 182 utf16_to_utf8(ent->ent_name, in print_part_type() 183 __arraycount(ent->ent_name), utfbuf, in print_part_type() 188 ent->ent_guid); in print_part_type() 191 "%d", ent->ent_type); in print_part_type() 194 ent->ent_type); in print_part_type() 262 struct gpt_ent *ent; in show_one() local 264 uint8_t utfbuf[__arraycount(ent->ent_name) * 3 + 1]; in show_one() [all …]
|