Home | History | Annotate | Download | only in x509

Lines Matching refs:ent

171 static void by_dir_entry_free(BY_DIR_ENTRY *ent)
173 if (ent->dir)
174 OPENSSL_free(ent->dir);
175 if (ent->hashes)
176 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free);
177 OPENSSL_free(ent);
206 BY_DIR_ENTRY *ent;
213 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j);
214 if (strlen(ent->dir) == len &&
215 strncmp(ent->dir, ss, len) == 0)
227 ent = OPENSSL_malloc(sizeof(BY_DIR_ENTRY));
228 if (!ent)
230 ent->dir_type = type;
231 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp);
232 ent->dir = OPENSSL_malloc(len + 1);
233 if (!ent->dir || !ent->hashes) {
234 by_dir_entry_free(ent);
237 BUF_strlcpy(ent->dir, ss, len + 1);
238 if (!sk_BY_DIR_ENTRY_push(ctx->dirs, ent)) {
239 by_dir_entry_free(ent);
309 BY_DIR_ENTRY *ent;
312 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
313 j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
318 if (type == X509_LU_CRL && ent->hashes) {
321 if (sk_BY_DIR_HASH_find(ent->hashes, &idx, &htmp)) {
322 hent = sk_BY_DIR_HASH_value(ent->hashes, idx);
336 c = ent->dir[strlen(ent->dir) - 1];
356 "%s%08lx.%s%d", ent->dir, h, postfix, k);
359 "%s%c%08lx.%s%d", ent->dir, c, h,
375 ent->dir_type)) == 0)
378 if ((X509_load_crl_file(xl, b->data, ent->dir_type)) == 0)
407 if (sk_BY_DIR_HASH_find(ent->hashes, &idx, &htmp))
408 hent = sk_BY_DIR_HASH_value(ent->hashes, idx);
419 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) {