Lines Matching refs:dir
40 char *dir; member
56 static int add_cert_dir(BY_DIR *ctx, const char *dir, int type);
91 const char *dir = ossl_safe_getenv(X509_get_default_cert_dir_env()); in dir_ctrl() local
93 if (dir) in dir_ctrl()
94 ret = add_cert_dir(ld, dir, X509_FILETYPE_PEM); in dir_ctrl()
151 OPENSSL_free(ent->dir); in by_dir_entry_free()
166 static int add_cert_dir(BY_DIR *ctx, const char *dir, int type) in add_cert_dir() argument
172 if (dir == NULL || *dir == '\0') { in add_cert_dir()
177 s = dir; in add_cert_dir()
190 if (strlen(ent->dir) == len && strncmp(ent->dir, ss, len) == 0) in add_cert_dir()
207 ent->dir = OPENSSL_strndup(ss, len); in add_cert_dir()
208 if (ent->dir == NULL || ent->hashes == NULL) { in add_cert_dir()
269 j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1; in get_cert_by_subject_ex()
295 c = ent->dir[strlen(ent->dir) - 1]; in get_cert_by_subject_ex()
314 "%s%08lx.%s%d", ent->dir, h, postfix, k); in get_cert_by_subject_ex()
319 "%s%c%08lx.%s%d", ent->dir, c, h, postfix, k); in get_cert_by_subject_ex()