Lines Matching refs:name

174     for (; o->name != NULL && o->name != OPT_PARAM_STR; ++o) {  in opt_init()
180 if (o->name == OPT_HELP_STR in opt_init()
181 || o->name == OPT_MORE_STR in opt_init()
182 || o->name == OPT_SECTION_STR) in opt_init()
188 OPENSSL_assert(o->name[0] != '-'); in opt_init()
204 for (next = o + 1; next->name; ++next) { in opt_init()
209 && strcmp(o->name, next->name) == 0; in opt_init()
212 prog, o->name); in opt_init()
217 if (o->name[0] == '\0') { in opt_init()
242 void opt_set_unknown_name(const char *name) in opt_set_unknown_name() argument
244 unknown_name = name; in opt_set_unknown_name()
253 for (ap = formats; ap->name; ap++) in opt_format_error()
255 opt_printf_stderr(" %s", ap->name); in opt_format_error()
392 int opt_cipher_silent(const char *name, EVP_CIPHER **cipherp) in opt_cipher_silent() argument
397 if ((c = EVP_CIPHER_fetch(app_get0_libctx(), name, in opt_cipher_silent()
400 && (c = (EVP_CIPHER *)EVP_get_cipherbyname(name)) != NULL)) { in opt_cipher_silent()
414 int opt_cipher_any(const char *name, EVP_CIPHER **cipherp) in opt_cipher_any() argument
418 if (name == NULL) in opt_cipher_any()
420 if ((ret = opt_cipher_silent(name, cipherp)) == 0) in opt_cipher_any()
421 opt_printf_stderr("%s: Unknown option or cipher: %s\n", prog, name); in opt_cipher_any()
425 int opt_cipher(const char *name, EVP_CIPHER **cipherp) in opt_cipher() argument
431 if (name == NULL) in opt_cipher()
433 if (opt_cipher_any(name, &c)) { in opt_cipher()
452 int opt_md_silent(const char *name, EVP_MD **mdp) in opt_md_silent() argument
457 if ((md = EVP_MD_fetch(app_get0_libctx(), name, app_get0_propq())) != NULL in opt_md_silent()
459 && (md = (EVP_MD *)EVP_get_digestbyname(name)) != NULL)) { in opt_md_silent()
473 int opt_md(const char *name, EVP_MD **mdp) in opt_md() argument
477 if (name == NULL) in opt_md()
479 if ((ret = opt_md_silent(name, mdp)) == 0) in opt_md()
481 prog, name); in opt_md()
485 int opt_check_md(const char *name) in opt_check_md() argument
487 if (opt_md(name, NULL)) in opt_check_md()
494 int opt_pair(const char *name, const OPT_PAIR* pairs, int *result) in opt_pair() argument
498 for (pp = pairs; pp->name; pp++) in opt_pair()
499 if (strcmp(pp->name, name) == 0) { in opt_pair()
504 for (pp = pairs; pp->name; pp++) in opt_pair()
505 opt_printf_stderr("\t%s\n", pp->name); in opt_pair()
510 int opt_string(const char *name, const char **options) in opt_string() argument
515 if (strcmp(*p, name) == 0) in opt_string()
553 char *name; in opt_number_error() member
563 prog, v, b[i].name); in opt_number_error()
911 for (o = opts; o->name; ++o) { in opt_next()
913 if (!(strcmp(p, "h") == 0 && strcmp(o->name, "help") == 0) in opt_next()
914 && strcmp(p, o->name) != 0) in opt_next()
931 prog, o->name); in opt_next()
965 prog, arg, o->name); in opt_next()
970 prog, arg, o->name); in opt_next()
1004 prog, arg, o->name); in opt_next()
1142 if (o->name == OPT_HELP_STR) { in opt_print()
1145 } else if (o->name == OPT_SECTION_STR) { in opt_print()
1149 } else if (o->name == OPT_PARAM_STR) { in opt_print()
1158 if (o->name == OPT_MORE_STR) { in opt_print()
1171 printlen = opt_printf_stderr("%s" , o->name[0] ? o->name : "*"); in opt_print()
1198 standard_prolog = list[0].name != OPT_HELP_STR; in opt_help()
1201 for (o = list; o->name; o++) { in opt_help()
1202 if (o->name == OPT_MORE_STR) in opt_help()
1205 i = 2 + (int)strlen(o->name); in opt_help()
1218 if (list[0].name != OPT_SECTION_STR) in opt_help()
1223 for (o = list; o->name; o++) { in opt_help()
1224 if (o->name == OPT_PARAM_STR) in opt_help()
1233 int opt_isdir(const char *name) in opt_isdir() argument
1237 size_t i, len_0 = strlen(name) + 1; in opt_isdir()
1244 if (!MultiByteToWideChar(CP_ACP, 0, name, len_0, tempname, MAX_PATH)) in opt_isdir()
1247 tempname[i] = (WCHAR)name[i]; in opt_isdir()
1251 attr = GetFileAttributes(name); in opt_isdir()
1267 int opt_isdir(const char *name) in opt_isdir() argument
1272 if (stat(name, &st) == 0) in opt_isdir()