• Home
  • Raw
  • Download

Lines Matching refs:ent

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