Lines Matching refs:fnd
88 ENGINE_PILE tmplate, *fnd;
104 fnd = lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate);
105 if (!fnd) {
106 fnd = OPENSSL_malloc(sizeof(*fnd));
107 if (fnd == NULL)
109 fnd->uptodate = 1;
110 fnd->nid = *nids;
111 fnd->sk = sk_ENGINE_new_null();
112 if (!fnd->sk) {
113 OPENSSL_free(fnd);
116 fnd->funct = NULL;
117 (void)lh_ENGINE_PILE_insert(&(*table)->piles, fnd);
118 if (lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate) != fnd) {
119 sk_ENGINE_free(fnd->sk);
120 OPENSSL_free(fnd);
125 (void)sk_ENGINE_delete_ptr(fnd->sk, e);
129 if (!sk_ENGINE_push(fnd->sk, e))
132 fnd->uptodate = 0;
138 if (fnd->funct)
139 engine_unlocked_finish(fnd->funct, 0);
140 fnd->funct = e;
141 fnd->uptodate = 1;
204 ENGINE_PILE tmplate, *fnd = NULL;
228 fnd = lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate);
229 if (!fnd)
231 if (fnd->funct && engine_unlocked_init(fnd->funct)) {
234 f, l, nid, fnd->funct->id);
235 ret = fnd->funct;
238 if (fnd->uptodate) {
239 ret = fnd->funct;
243 ret = sk_ENGINE_value(fnd->sk, loop++);
258 if ((fnd->funct != ret) && engine_unlocked_init(ret)) {
260 if (fnd->funct)
261 engine_unlocked_finish(fnd->funct, 0);
262 fnd->funct = ret;
278 if (fnd)
279 fnd->uptodate = 1;