Lines Matching refs:ent
177 static void by_dir_entry_free(BY_DIR_ENTRY *ent)
179 if (ent->dir)
180 OPENSSL_free(ent->dir);
181 if (ent->hashes)
182 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free);
183 OPENSSL_free(ent);
212 BY_DIR_ENTRY *ent;
219 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j);
220 if (strlen(ent->dir) == (size_t)len &&
221 strncmp(ent->dir, ss, (unsigned int)len) == 0)
233 ent = OPENSSL_malloc(sizeof(BY_DIR_ENTRY));
234 if (!ent)
236 ent->dir_type = type;
237 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp);
238 ent->dir = OPENSSL_malloc((unsigned int)len + 1);
239 if (!ent->dir || !ent->hashes) {
240 by_dir_entry_free(ent);
243 strncpy(ent->dir, ss, (unsigned int)len);
244 ent->dir[len] = '\0';
245 if (!sk_BY_DIR_ENTRY_push(ctx->dirs, ent)) {
246 by_dir_entry_free(ent);
303 BY_DIR_ENTRY *ent;
306 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
307 j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
312 if (type == X509_LU_CRL && ent->hashes) {
315 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp);
317 hent = sk_BY_DIR_HASH_value(ent->hashes, idx);
331 c = ent->dir[strlen(ent->dir) - 1];
350 "%s%08lx.%s%d", ent->dir, h, postfix, k);
353 "%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
367 if ((X509_load_cert_file(xl, b->data, ent->dir_type)) == 0)
370 if ((X509_load_crl_file(xl, b->data, ent->dir_type)) == 0)
398 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp);
400 hent = sk_BY_DIR_HASH_value(ent->hashes, idx);
406 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) {