Lines Matching refs:ent
187 static void by_dir_entry_free(BY_DIR_ENTRY *ent)
189 if (ent->dir)
190 OPENSSL_free(ent->dir);
191 if (ent->hashes)
192 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free);
193 OPENSSL_free(ent);
225 BY_DIR_ENTRY *ent;
232 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j);
233 if (strlen(ent->dir) == (size_t)len &&
234 strncmp(ent->dir,ss,(unsigned int)len) == 0)
248 ent = OPENSSL_malloc(sizeof(BY_DIR_ENTRY));
249 if (!ent)
251 ent->dir_type = type;
252 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp);
253 ent->dir = OPENSSL_malloc((unsigned int)len+1);
254 if (!ent->dir || !ent->hashes)
256 by_dir_entry_free(ent);
259 strncpy(ent->dir,ss,(unsigned int)len);
260 ent->dir[len] = '\0';
261 if (!sk_BY_DIR_ENTRY_push(ctx->dirs, ent))
263 by_dir_entry_free(ent);
328 BY_DIR_ENTRY *ent;
331 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
332 j=strlen(ent->dir)+1+8+6+1+1;
338 if (type == X509_LU_CRL && ent->hashes)
342 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp);
345 hent = sk_BY_DIR_HASH_value(ent->hashes, idx);
364 c = ent->dir[strlen(ent->dir)-1];
385 "%s%08lx.%s%d",ent->dir,h,
391 "%s%c%08lx.%s%d",ent->dir,c,h,
408 ent->dir_type)) == 0)
414 ent->dir_type)) == 0)
441 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp);
444 sk_BY_DIR_HASH_value(ent->hashes, idx);
451 if (!sk_BY_DIR_HASH_push(ent->hashes, hent))