Lines Matching defs:fnd
121 ENGINE_PILE tmplate, *fnd;
133 fnd = lh_retrieve(&(*table)->piles, &tmplate);
134 if(!fnd)
136 fnd = OPENSSL_malloc(sizeof(ENGINE_PILE));
137 if(!fnd) goto end;
138 fnd->uptodate = 0;
139 fnd->nid = *nids;
140 fnd->sk = sk_ENGINE_new_null();
141 if(!fnd->sk)
143 OPENSSL_free(fnd);
146 fnd->funct = NULL;
147 lh_insert(&(*table)->piles, fnd);
150 sk_ENGINE_delete_ptr(fnd->sk, e);
152 if(!sk_ENGINE_push(fnd->sk, e))
155 fnd->uptodate = 1;
164 if(fnd->funct)
165 engine_unlocked_finish(fnd->funct, 0);
166 fnd->funct = e;
229 ENGINE_PILE tmplate, *fnd=NULL;
245 fnd = lh_retrieve(&(*table)->piles, &tmplate);
246 if(!fnd) goto end;
247 if(fnd->funct && engine_unlocked_init(fnd->funct))
251 "ENGINE '%s' cached\n", f, l, nid, fnd->funct->id);
253 ret = fnd->funct;
256 if(fnd->uptodate)
258 ret = fnd->funct;
262 ret = sk_ENGINE_value(fnd->sk, loop++);
280 if((fnd->funct != ret) && engine_unlocked_init(ret))
283 if(fnd->funct)
284 engine_unlocked_finish(fnd->funct, 0);
285 fnd->funct = ret;
301 if(fnd) fnd->uptodate = 1;