Lines Matching defs:name

49  * Return the simple name of the program; removing various platform gunk.
80 /* Copy over the name, in lowercase. */
170 /* Make sure prog name is set for usage output */
174 for (; o->name != NULL && o->name != OPT_PARAM_STR; ++o) {
180 if (o->name == OPT_HELP_STR
181 || o->name == OPT_MORE_STR
182 || o->name == OPT_SECTION_STR)
188 OPENSSL_assert(o->name[0] != '-');
204 for (next = o + 1; next->name; ++next) {
209 && strcmp(o->name, next->name) == 0;
212 prog, o->name);
217 if (o->name[0] == '\0') {
250 for (ap = formats; ap->name; ap++)
252 opt_printf_stderr(" %s\n", ap->name);
373 * Parse a cipher name, put it in *cipherp after freeing what was there, if
376 int opt_cipher_silent(const char *name, EVP_CIPHER **cipherp)
381 if ((c = EVP_CIPHER_fetch(app_get0_libctx(), name,
384 && (c = (EVP_CIPHER *)EVP_get_cipherbyname(name)) != NULL)) {
398 int opt_cipher_any(const char *name, EVP_CIPHER **cipherp)
402 if ((ret = opt_cipher_silent(name, cipherp)) == 0)
403 opt_printf_stderr("%s: Unknown cipher: %s\n", prog, name);
407 int opt_cipher(const char *name, EVP_CIPHER **cipherp)
413 if (opt_cipher_any(name, &c)) {
430 * Parse message digest name, put it in *EVP_MD; return 0 on failure, else 1.
432 int opt_md_silent(const char *name, EVP_MD **mdp)
437 if ((md = EVP_MD_fetch(app_get0_libctx(), name, app_get0_propq())) != NULL
439 && (md = (EVP_MD *)EVP_get_digestbyname(name)) != NULL)) {
453 int opt_md(const char *name, EVP_MD **mdp)
457 if ((ret = opt_md_silent(name, mdp)) == 0)
459 name != NULL ? name : "\"\"");
463 /* Look through a list of name/value pairs. */
464 int opt_pair(const char *name, const OPT_PAIR* pairs, int *result)
468 for (pp = pairs; pp->name; pp++)
469 if (strcmp(pp->name, name) == 0) {
474 for (pp = pairs; pp->name; pp++)
475 opt_printf_stderr("\t%s\n", pp->name);
480 int opt_string(const char *name, const char **options)
485 if (strcmp(*p, name) == 0)
523 char *name;
533 prog, v, b[i].name);
707 /* purpose name -> purpose index */
729 opt_printf_stderr("%s: Invalid verify name %s\n",
881 for (o = opts; o->name; ++o) {
883 if (!(strcmp(p, "h") == 0 && strcmp(o->name, "help") == 0)
884 && strcmp(p, o->name) != 0)
901 prog, o->name);
935 prog, arg, o->name);
940 prog, arg, o->name);
971 prog, arg, o->name);
992 /* Return the most recent flag (option name including the preceding '-'). */
1069 if (o->name == OPT_HELP_STR) {
1073 if (o->name == OPT_SECTION_STR) {
1078 if (o->name == OPT_PARAM_STR) {
1087 if (o->name == OPT_MORE_STR) {
1099 if (o->name[0])
1100 p += strlen(strcpy(p, o->name));
1125 standard_prolog = list[0].name != OPT_HELP_STR;
1128 for (o = list; o->name; o++) {
1129 if (o->name == OPT_MORE_STR)
1131 i = 2 + (int)strlen(o->name);
1141 if (list[0].name != OPT_SECTION_STR)
1146 for (o = list; o->name; o++) {
1147 if (o->name == OPT_PARAM_STR)
1156 int opt_isdir(const char *name)
1160 size_t i, len_0 = strlen(name) + 1;
1167 if (!MultiByteToWideChar(CP_ACP, 0, name, len_0, tempname, MAX_PATH))
1170 tempname[i] = (WCHAR)name[i];
1174 attr = GetFileAttributes(name);
1190 int opt_isdir(const char *name)
1195 if (stat(name, &st) == 0)