Lines Matching full:ep
127 HENTRY *ep, *found = NULL; in add_entry() local
142 for (ep = bp->first_entry; ep; ep = ep->next) { in add_entry()
143 if (digest && memcmp(digest, ep->digest, evpmdsize) == 0) { in add_entry()
150 if (strcmp(filename, ep->filename) == 0) { in add_entry()
151 found = ep; in add_entry()
156 ep = found; in add_entry()
157 if (ep == NULL) { in add_entry()
164 ep = app_malloc(sizeof(*ep), "collision bucket"); in add_entry()
165 *ep = nilhentry; in add_entry()
166 ep->old_id = ~0; in add_entry()
167 ep->filename = OPENSSL_strdup(filename); in add_entry()
168 if (ep->filename == NULL) { in add_entry()
169 OPENSSL_free(ep); in add_entry()
170 ep = NULL; in add_entry()
175 bp->last_entry->next = ep; in add_entry()
177 bp->first_entry = ep; in add_entry()
178 bp->last_entry = ep; in add_entry()
181 if (old_id < ep->old_id) in add_entry()
182 ep->old_id = old_id; in add_entry()
183 if (need_symlink && !ep->need_symlink) { in add_entry()
184 ep->need_symlink = 1; in add_entry()
186 memcpy(ep->digest, digest, evpmdsize); in add_entry()
351 HENTRY *ep, *nextep; in do_dir() local
418 for (ep = bp->first_entry; ep; ep = ep->next) in do_dir()
419 if (ep->old_id < bp->num_needed) in do_dir()
420 bit_set(idmask, ep->old_id); in do_dir()
422 for (ep = bp->first_entry; ep; ep = nextep) { in do_dir()
423 nextep = ep->next; in do_dir()
424 if (ep->old_id < bp->num_needed) { in do_dir()
427 suffixes[bp->type], ep->old_id); in do_dir()
430 ep->filename, buf); in do_dir()
431 } else if (ep->need_symlink) { in do_dir()
441 ep->filename, &buf[dirlen]); in do_dir()
448 if (symlink(ep->filename, buf) < 0) { in do_dir()
451 opt_getprog(), ep->filename, in do_dir()
460 suffixes[bp->type], ep->old_id); in do_dir()
471 OPENSSL_free(ep->filename); in do_dir()
472 OPENSSL_free(ep); in do_dir()