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()
250 for (ap = formats; ap->name; ap++) in opt_format_error()
252 opt_printf_stderr(" %s\n", ap->name); in opt_format_error()
376 int opt_cipher_silent(const char *name, EVP_CIPHER **cipherp) in opt_cipher_silent() argument
381 if ((c = EVP_CIPHER_fetch(app_get0_libctx(), name, in opt_cipher_silent()
384 && (c = (EVP_CIPHER *)EVP_get_cipherbyname(name)) != NULL)) { in opt_cipher_silent()
398 int opt_cipher_any(const char *name, EVP_CIPHER **cipherp) in opt_cipher_any() argument
402 if ((ret = opt_cipher_silent(name, cipherp)) == 0) in opt_cipher_any()
403 opt_printf_stderr("%s: Unknown cipher: %s\n", prog, name); in opt_cipher_any()
407 int opt_cipher(const char *name, EVP_CIPHER **cipherp) in opt_cipher() argument
413 if (opt_cipher_any(name, &c)) { in opt_cipher()
432 int opt_md_silent(const char *name, EVP_MD **mdp) in opt_md_silent() argument
437 if ((md = EVP_MD_fetch(app_get0_libctx(), name, app_get0_propq())) != NULL in opt_md_silent()
439 && (md = (EVP_MD *)EVP_get_digestbyname(name)) != NULL)) { in opt_md_silent()
453 int opt_md(const char *name, EVP_MD **mdp) in opt_md() argument
457 if ((ret = opt_md_silent(name, mdp)) == 0) in opt_md()
459 name != NULL ? name : "\"\""); in opt_md()
464 int opt_pair(const char *name, const OPT_PAIR* pairs, int *result) in opt_pair() argument
468 for (pp = pairs; pp->name; pp++) in opt_pair()
469 if (strcmp(pp->name, name) == 0) { in opt_pair()
474 for (pp = pairs; pp->name; pp++) in opt_pair()
475 opt_printf_stderr("\t%s\n", pp->name); in opt_pair()
480 int opt_string(const char *name, const char **options) in opt_string() argument
485 if (strcmp(*p, name) == 0) in opt_string()
523 char *name; in opt_number_error() member
533 prog, v, b[i].name); in opt_number_error()
876 for (o = opts; o->name; ++o) { in opt_next()
878 if (!(strcmp(p, "h") == 0 && strcmp(o->name, "help") == 0) in opt_next()
879 && strcmp(p, o->name) != 0) in opt_next()
896 prog, o->name); in opt_next()
930 prog, arg, o->name); in opt_next()
935 prog, arg, o->name); in opt_next()
966 prog, arg, o->name); in opt_next()
1064 if (o->name == OPT_HELP_STR) { in opt_print()
1068 if (o->name == OPT_SECTION_STR) { in opt_print()
1073 if (o->name == OPT_PARAM_STR) { in opt_print()
1082 if (o->name == OPT_MORE_STR) { in opt_print()
1094 if (o->name[0]) in opt_print()
1095 p += strlen(strcpy(p, o->name)); in opt_print()
1120 standard_prolog = list[0].name != OPT_HELP_STR; in opt_help()
1123 for (o = list; o->name; o++) { in opt_help()
1124 if (o->name == OPT_MORE_STR) in opt_help()
1126 i = 2 + (int)strlen(o->name); in opt_help()
1136 if (list[0].name != OPT_SECTION_STR) in opt_help()
1141 for (o = list; o->name; o++) { in opt_help()
1142 if (o->name == OPT_PARAM_STR) in opt_help()
1151 int opt_isdir(const char *name) in opt_isdir() argument
1155 size_t i, len_0 = strlen(name) + 1; in opt_isdir()
1162 if (!MultiByteToWideChar(CP_ACP, 0, name, len_0, tempname, MAX_PATH)) in opt_isdir()
1165 tempname[i] = (WCHAR)name[i]; in opt_isdir()
1169 attr = GetFileAttributes(name); in opt_isdir()
1185 int opt_isdir(const char *name) in opt_isdir() argument
1190 if (stat(name, &st) == 0) in opt_isdir()