Home
last modified time | relevance | path

Searched refs:choice (Results 1 – 25 of 254) sorted by relevance

1234567891011

/freebsd/crypto/openssl/crypto/x509/
H A Dv3_timespec.c66 ASN1_SET_OF(OSSL_NAMED_DAY, choice.intNamedDays, ASN1_ENUMERATED),
67 ASN1_SIMPLE(OSSL_NAMED_DAY, choice.bitNamedDays, ASN1_BIT_STRING),
71 ASN1_EXP(OSSL_TIME_SPEC_X_DAY_OF, choice.first, OSSL_NAMED_DAY, 1),
72 ASN1_EXP(OSSL_TIME_SPEC_X_DAY_OF, choice.second, OSSL_NAMED_DAY, 2),
73 ASN1_EXP(OSSL_TIME_SPEC_X_DAY_OF, choice.third, OSSL_NAMED_DAY, 3),
74 ASN1_EXP(OSSL_TIME_SPEC_X_DAY_OF, choice.fourth, OSSL_NAMED_DAY, 4),
75 ASN1_EXP(OSSL_TIME_SPEC_X_DAY_OF, choice.fifth, OSSL_NAMED_DAY, 5),
79 ASN1_SET_OF(OSSL_TIME_SPEC_DAY, choice.intDay, ASN1_INTEGER),
80 ASN1_SIMPLE(OSSL_TIME_SPEC_DAY, choice.bitDay, ASN1_BIT_STRING),
81 ASN1_SIMPLE(OSSL_TIME_SPEC_DAY, choice.dayOf, OSSL_TIME_SPEC_X_DAY_OF),
[all …]
H A Dv3_asid.c63 ASIdentifierChoice *choice,
68 if (choice == NULL)
71 switch (choice->type) {
76 for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges); i++) {
77 ASIdOrRange *aor = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i);
150 ASIdentifierChoice **choice; in X509v3_asid_add_inherit() local
155 choice = &asid->asnum; in X509v3_asid_add_inherit()
158 choice = &asid->rdi; in X509v3_asid_add_inherit()
163 if (*choice == NULL) { in X509v3_asid_add_inherit()
164 if ((*choice = ASIdentifierChoice_new()) == NULL) in X509v3_asid_add_inherit()
[all …]
H A Dv3_attrmap.c31 ASN1_IMP(OSSL_ATTRIBUTE_MAPPING, choice.typeMappings,
33 ASN1_IMP(OSSL_ATTRIBUTE_MAPPING, choice.typeValueMappings,
56 if (i2a_ASN1_OBJECT(out, am->choice.typeMappings->local) <= 0)
60 return i2a_ASN1_OBJECT(out, am->choice.typeMappings->remote);
62 local_type = am->choice.typeValueMappings->local->type;
63 remote_type = am->choice.typeValueMappings->remote->type;
64 local_val = am->choice.typeValueMappings->local->value;
65 remote_val = am->choice.typeValueMappings->remote->value;
H A Dv3_aaa.c17 ASN1_IMP(OSSL_ALLOWED_ATTRIBUTES_CHOICE, choice.attributeType, ASN1_OBJECT,
19 ASN1_IMP(OSSL_ALLOWED_ATTRIBUTES_CHOICE, choice.attributeTypeandValues,
51 if (i2a_ASN1_OBJECT(out, a->choice.attributeType) <= 0)
55 attr = a->choice.attributeTypeandValues;
H A Dv3_attrdesc.c26 ASN1_SIMPLE(OSSL_INFO_SYNTAX, choice.content, DIRECTORYSTRING),
27 ASN1_SIMPLE(OSSL_INFO_SYNTAX, choice.pointer, OSSL_INFO_SYNTAX_POINTER)
103 if (BIO_printf(out, "%.*s", info->choice.content->length, info->choice.content->data) <= 0) in i2r_OSSL_INFO_SYNTAX()
111 return i2r_INFO_SYNTAX_POINTER(method, info->choice.pointer, out, indent + 4); in i2r_OSSL_INFO_SYNTAX()
H A Dv3_ac_tgt.c61 ASN1_EXP(OSSL_TARGET, choice.targetName, GENERAL_NAME, 0),
62 ASN1_EXP(OSSL_TARGET, choice.targetGroup, GENERAL_NAME, 1),
63 ASN1_IMP(OSSL_TARGET, choice.targetCert, OSSL_TARGET_CERT, 2),
189 GENERAL_NAME_print(out, target->choice.targetName); in i2r_TARGET()
194 GENERAL_NAME_print(out, target->choice.targetGroup); in i2r_TARGET()
199 i2r_TARGET_CERT(method, target->choice.targetCert, out, indent + 2); in i2r_TARGET()
/freebsd/contrib/dialog/
H A Dformbox.c78 print_item(WINDOW *win, DIALOG_FORMITEM * item, int scrollamt, bool choice) in print_item() argument
107 this_item_attribute = choice in print_item()
135 print_form(WINDOW *win, DIALOG_FORMITEM * item, int total, int scrollamt, int choice) in print_form() argument
141 count += print_item(win, item + n, scrollamt, n == choice); in print_form()
151 set_choice(DIALOG_FORMITEM item[], int choice, int item_no, bool * noneditable) in set_choice() argument
156 if (!is_readonly(&item[choice])) { in set_choice()
157 result = choice; in set_choice()
193 is_first_field(DIALOG_FORMITEM item[], int choice) in is_first_field() argument
196 while (choice >= 0) { in is_first_field()
197 if (item[choice].text_flen > 0) { in is_first_field()
[all …]
H A Dmenubox.c66 int choice, in print_item() argument
74 int my_y = ItemToRow(choice); in print_item()
144 int choice, in input_menu_edit() argument
154 int y = ItemToRow(choice); in input_menu_edit()
165 print_item(data, data->menu, items, choice, Editing, TRUE); in input_menu_edit()
195 print_item(data, data->menu, items, choice, Selected, TRUE); in input_menu_edit()
203 handle_button(int code, DIALOG_LISTITEM * items, int choice) in handle_button() argument
210 dlg_add_string(items[choice].name); in handle_button()
213 dlg_add_help_listitem(&code, &help_result, &items[choice]); in handle_button()
244 print_menu(ALL_DATA * data, int choice, int scrollamt, int max_choice, bool is_inputmenu) in print_menu() argument
[all …]
H A Dchecklist.c60 int choice, in print_item() argument
74 (void) wmove(win, choice, 0); in print_item()
78 (void) wmove(win, choice, data->check_x); in print_item()
91 (void) wmove(win, choice, data->item_x); in print_item()
101 print_list(ALL_DATA * data, int choice, int scrollamt, int max_choice) in print_list() argument
112 i, i == choice); in print_list()
132 check_hotkey(DIALOG_LISTITEM * items, int choice) in check_hotkey() argument
138 ? items[choice].text in check_hotkey()
139 : items[choice].name))) { in check_hotkey()
197 int choice = dlg_default_listitem(items); in dlg_checklist() local
[all …]
H A Dtreeview.c57 int choice, in print_item() argument
71 (void) wmove(win, choice, 0); in print_item()
75 (void) wmove(win, choice, data->check_x); in print_item()
85 (void) wmove(win, choice, data->item_x + INDENT * i); in print_item()
90 (void) wmove(win, choice, data->item_x + INDENT * depths); in print_item()
102 int choice, in print_list() argument
116 i, i == choice); in print_list()
136 check_hotkey(DIALOG_LISTITEM * items, int choice) in check_hotkey() argument
142 ? items[choice].text in check_hotkey()
143 : items[choice].name))) { in check_hotkey()
[all …]
H A Dbuildlist.c76 index2row(ALL_DATA * all, int choice, int selected) in index2row() argument
81 if (okIndex(all, choice)) { in index2row()
86 choice, all->items + choice, in index2row()
88 if (myItem(data, row) == all->items + choice) { in index2row()
94 TRACE(("! index2row(choice %d, %s) = %d\n", choice, mySide(selected), result)); in index2row()
170 int choice, in print_1_list() argument
174 DIALOG_LISTITEM *target = (okIndex(all, choice) in print_1_list()
175 ? all->items + choice in print_1_list()
183 TRACE(("! print_1_list %d %s, top %d\n", choice, mySide(selected), top_row)); in print_1_list()
211 prev_item(ALL_DATA * all, int choice, int selected) in prev_item() argument
[all …]
H A Dfselect.c78 int choice; /* index of the selection */ member
96 list->choice = 0; in init_list()
121 return list->data[list->choice]; in data_of()
164 if (list->choice < list->offset) { in keep_visible()
165 list->offset = list->choice; in keep_visible()
167 if (list->choice - list->offset >= high) in keep_visible()
168 list->offset = list->choice - high + 1; in keep_visible()
176 int choice = list->choice; in find_choice() local
179 list->choice = 0; in find_choice()
208 list->choice = n; in find_choice()
[all …]
H A Dmixedform.c52 int choice = 0; in dialog_mixedform() local
89 &choice); in dialog_mixedform()
97 dlg_add_help_formitem(&result, &help_result, &listitems[choice]); in dialog_mixedform()
/freebsd/crypto/heimdal/lib/asn1/
H A Dtemplate.c378 const struct asn1_template *choice = t->ptr; in _asn1_decode()
379 unsigned int *element = DPO(data, choice->offset); in _asn1_decode()
383 for (i = 1; i < A1_HEADER_LEN(choice) + 1; i++) { in _asn1_decode()
384 /* should match first tag instead, store it in choice.tt */ in _asn1_decode()
385 ret = _asn1_decode(choice[i].ptr, 0, p, len, in _asn1_decode()
386 DPO(data, choice[i].offset), &datalen); in _asn1_decode()
395 if (i >= A1_HEADER_LEN(choice) + 1) { in _asn1_decode()
396 if (choice->tt == 0) in _asn1_decode()
401 DPO(data, choice->tt), &datalen); in _asn1_decode()
663 const struct asn1_template *choice in _asn1_encode()
376 const struct asn1_template *choice = t->ptr; _asn1_decode() local
661 const struct asn1_template *choice = t->ptr; _asn1_encode() local
796 const struct asn1_template *choice = t->ptr; _asn1_length() local
902 const struct asn1_template *choice = t->ptr; _asn1_free() local
1063 const struct asn1_template *choice = t->ptr; _asn1_copy() local
[all...]
/freebsd/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c118 int choice; in newfs_command() local
120 choice = bsddialog_checklist(&conf, "", 0, 0, 0, in newfs_command()
122 if (choice == BSDDIALOG_CANCEL) in newfs_command()
156 int choice; in newfs_command() local
158 choice = bsddialog_checklist(&conf, "", 0, 0, 0, in newfs_command()
160 if (choice == BSDDIALOG_CANCEL) in newfs_command()
200 int choice; in newfs_command() local
202 choice = bsddialog_radiolist(&conf, "", 0, 0, 0, in newfs_command()
204 if (choice == BSDDIALOG_CANCEL) in newfs_command()
235 int button, choice, i; in choose_part_type() local
[all …]
H A Dpart_wizard.c252 int choice; in wizard_partition() local
291 choice = bsddialog_yesno(&conf, message, 9, 45); in wizard_partition()
297 if (choice == BSDDIALOG_NO && scheme != NULL && !is_scheme_bootable(scheme)) { in wizard_partition()
319 if (scheme == NULL || choice == 0) { in wizard_partition()
323 choice = bsddialog_yesno(&conf, "This will erase " in wizard_partition()
325 if (choice != BSDDIALOG_YES) in wizard_partition()
343 choice /* Non-interactive for "Entire Disk" */); in wizard_partition()
/freebsd/usr.bin/fortune/fortune/
H A Dfortune.c940 int choice; in get_fort() local
945 choice = arc4random_uniform(100); in get_fort()
946 DPRINTF(1, (stderr, "choice = %d\n", choice)); in get_fort()
948 if (choice < fp->percent) in get_fort()
951 choice -= fp->percent; in get_fort()
954 fp->name, fp->percent, choice)); in get_fort()
959 fp->name, fp->percent, choice)); in get_fort()
966 choice = arc4random_uniform(Noprob_tbl.str_numstr); in get_fort()
967 DPRINTF(1, (stderr, "choice = %d (of %u) \n", choice, in get_fort()
969 while ((unsigned int)choice >= fp->tbl.str_numstr) { in get_fort()
[all …]
/freebsd/stand/lua/
H A Dmenu.lua114 name = function(idx, choice, all_choices)
128 choice .. color.resetfg()
133 func = function(_, choice, _)
134 bootenvSet(choice)
340 name = function(idx, choice, all_choices)
352 kernel_name = name_color .. choice ..
357 func = function(_, choice, _)
361 config.selectKernel(choice)
/freebsd/crypto/krb5/src/plugins/preauth/spake/
H A Dspake_client.c132 if (st->msg->choice == SPAKE_MSGTYPE_CHALLENGE) { in spake_prep_questions()
142 } else if (st->msg->choice == SPAKE_MSGTYPE_ENCDATA) { in spake_prep_questions()
163 msg.choice = SPAKE_MSGTYPE_SUPPORT; in send_support()
273 msg.choice = SPAKE_MSGTYPE_RESPONSE; in process_challenge()
348 } else if (st->msg->choice == SPAKE_MSGTYPE_CHALLENGE) { in spake_process()
353 } else if (st->msg->choice == SPAKE_MSGTYPE_ENCDATA) { in spake_process()
/freebsd/contrib/ofed/opensm/opensm/
H A Dmain.c433 uint32_t i, choice = 0; in get_port_guid() local
493 if (scanf("%u", &choice) <= 0) { in get_port_guid()
497 } else if (choice == 0) in get_port_guid()
499 else if (choice <= num_ports) in get_port_guid()
503 choice--; in get_port_guid()
505 cl_ntoh64(attr_array[choice].port_guid)); in get_port_guid()
506 return attr_array[choice].port_guid; in get_port_guid()
/freebsd/contrib/xz/src/liblzma/lzma/
H A Dlzma_decoder.c38 rc_if_0_safe(ld.choice, seq ## _CHOICE) { \
39 rc_update_0(ld.choice); \
44 rc_update_1(ld.choice); \
73 rc_if_0(ld.choice) { \
74 rc_update_0(ld.choice); \
79 rc_update_1(ld.choice); \
98 probability choice; member
1086 bit_reset(coder->match_len_decoder.choice); in lzma_decoder_reset()
1088 bit_reset(coder->rep_len_decoder.choice); in lzma_decoder_reset()
/freebsd/contrib/ofed/opensm/libvendor/
H A Dosm_vendor_mtl_hca_guid.c548 uint32_t choice = 0; in get_port_guid() local
602 scanf("%u", &choice); in get_port_guid()
603 if (choice > num_ports) in get_port_guid()
611 attr_array[choice - 1].port_guid, in get_port_guid()
620 return (attr_array[choice - 1].port_guid); in get_port_guid()
/freebsd/crypto/openssl/fuzz/
H A Dslh-dsa.c109 unsigned int choice; in select_keytype() local
119 choice = (selector % 12) + 1460; in select_keytype()
121 name = OBJ_nid2ln(choice); in select_keytype()
127 switch (choice) { in select_keytype()
/freebsd/crypto/krb5/src/lib/krb5/asn.1/
H A Dasn1_encode.c816 const struct choice_info *choice = c->tinfo; in encode_cntype() local
817 if (count >= choice->n_options) in encode_cntype()
819 return encode_atype(buf, val, choice->options[count], tag_out); in encode_cntype()
1001 const struct choice_info *choice = c->tinfo; in free_cntype() local
1002 if (count < choice->n_options) { in free_cntype()
1003 free_atype(choice->options[count], val); in free_cntype()
1004 free_atype_ptr(choice->options[count], val); in free_cntype()
1278 const struct choice_info *choice = c->tinfo; in decode_cntype() local
1280 for (i = 0; i < choice->n_options; i++) { in decode_cntype()
1281 if (check_atype_tag(choice->options[i], t)) { in decode_cntype()
[all …]
/freebsd/bin/sh/tests/parser/
H A Ddollar-quote12.03 # Our choice is a parse error.

1234567891011