Lines Matching refs:filename
73 char *filename; member
121 static int add_entry(enum Type type, unsigned int hash, const char *filename, in add_entry() argument
148 type == TYPE_CERT ? "certificate" : "CRL", filename); in add_entry()
151 if (strcmp(filename, ep->filename) == 0) { in add_entry()
162 opt_getprog(), filename); in add_entry()
168 ep->filename = OPENSSL_strdup(filename); in add_entry()
169 if (ep->filename == NULL) { in add_entry()
196 static int handle_symlink(const char *filename, const char *fullpath) in handle_symlink() argument
205 ch = filename[i]; in handle_symlink()
211 if (filename[i++] != '.') in handle_symlink()
214 if (OPENSSL_strncasecmp(&filename[i], in handle_symlink()
220 id = strtoul(&filename[i], &endptr, 10); in handle_symlink()
235 static int do_file(const char *filename, const char *fullpath, enum Hash h) in do_file() argument
247 if ((ext = strrchr(filename, '.')) == NULL) in do_file()
259 opt_getprog(), filename); in do_file()
272 opt_getprog(), filename); in do_file()
305 errs += add_entry(type, hash_value, filename, digest, 1, ~0); in do_file()
314 filename, digest, 1, ~0); in do_file()
359 const char *filename; in do_dir() local
381 while ((filename = OPENSSL_DIR_read(&d, dirname)) != NULL) { in do_dir()
382 size_t fname_len = strlen(filename); in do_dir()
384 if ((copy = OPENSSL_strdup(filename)) == NULL in do_dir()
403 filename = sk_OPENSSL_STRING_value(files, n); in do_dir()
405 dirname, pathsep, filename) >= buflen) in do_dir()
409 if (S_ISLNK(st.st_mode) && handle_symlink(filename, buf) == 0) in do_dir()
411 errs += do_file(filename, buf, h); in do_dir()
431 ep->filename, buf); in do_dir()
442 ep->filename, &buf[dirlen]); in do_dir()
449 if (symlink(ep->filename, buf) < 0) { in do_dir()
452 opt_getprog(), ep->filename, in do_dir()
472 OPENSSL_free(ep->filename); in do_dir()