Lines Matching defs:fnd
88 ENGINE_PILE tmplate, *fnd;
101 fnd = lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate);
102 if (!fnd) {
103 fnd = OPENSSL_malloc(sizeof(*fnd));
104 if (fnd == NULL)
106 fnd->uptodate = 1;
107 fnd->nid = *nids;
108 fnd->sk = sk_ENGINE_new_null();
109 if (!fnd->sk) {
110 OPENSSL_free(fnd);
113 fnd->funct = NULL;
114 (void)lh_ENGINE_PILE_insert(&(*table)->piles, fnd);
115 if (lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate) != fnd) {
116 sk_ENGINE_free(fnd->sk);
117 OPENSSL_free(fnd);
122 (void)sk_ENGINE_delete_ptr(fnd->sk, e);
126 if (!sk_ENGINE_push(fnd->sk, e))
129 fnd->uptodate = 0;
135 if (fnd->funct)
136 engine_unlocked_finish(fnd->funct, 0);
137 fnd->funct = e;
138 fnd->uptodate = 1;
201 ENGINE_PILE tmplate, *fnd = NULL;
223 fnd = lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate);
224 if (!fnd)
226 if (fnd->funct && engine_unlocked_init(fnd->funct)) {
229 f, l, nid, fnd->funct->id);
230 ret = fnd->funct;
233 if (fnd->uptodate) {
234 ret = fnd->funct;
238 ret = sk_ENGINE_value(fnd->sk, loop++);
253 if ((fnd->funct != ret) && engine_unlocked_init(ret)) {
255 if (fnd->funct)
256 engine_unlocked_finish(fnd->funct, 0);
257 fnd->funct = ret;
273 if (fnd)
274 fnd->uptodate = 1;