Lines Matching refs:storage
216 EX_CALLBACK **storage = NULL;
233 storage = stack;
235 storage = OPENSSL_malloc(sizeof(*storage) * mx);
236 if (storage != NULL)
238 storage[i] = sk_EX_CALLBACK_value(ip->meth, i);
242 if (mx > 0 && storage == NULL) {
247 if (storage[i] != NULL && storage[i]->new_func != NULL) {
249 storage[i]->new_func(obj, ptr, ad, i,
250 storage[i]->argl, storage[i]->argp);
253 if (storage != stack)
254 OPENSSL_free(storage);
273 EX_CALLBACK **storage = NULL;
297 storage = stack;
299 storage = OPENSSL_malloc(sizeof(*storage) * mx);
300 if (storage != NULL)
302 storage[i] = sk_EX_CALLBACK_value(ip->meth, i);
308 if (storage == NULL) {
324 if (storage[i] != NULL && storage[i]->dup_func != NULL)
325 if (!storage[i]->dup_func(to, from, &ptr, i,
326 storage[i]->argl, storage[i]->argp))
332 if (storage != stack)
333 OPENSSL_free(storage);
370 struct ex_callback_entry *storage = NULL;
383 storage = stack;
385 storage = OPENSSL_malloc(sizeof(*storage) * mx);
386 if (storage != NULL)
388 storage[i].excb = sk_EX_CALLBACK_value(ip->meth, i);
389 storage[i].index = i;
394 if (storage != NULL) {
396 qsort(storage, mx, sizeof(*storage), ex_callback_compare);
398 f = storage[i].excb;
401 ptr = CRYPTO_get_ex_data(ad, storage[i].index);
402 f->free_func(obj, ptr, ad, storage[i].index, f->argl, f->argp);
407 if (storage != stack)
408 OPENSSL_free(storage);