Lines Matching defs:storage
218 EX_CALLBACK **storage = NULL;
235 storage = stack;
237 storage = OPENSSL_malloc(sizeof(*storage) * mx);
238 if (storage != NULL)
240 storage[i] = sk_EX_CALLBACK_value(ip->meth, i);
244 if (mx > 0 && storage == NULL) {
249 if (storage[i] != NULL && storage[i]->new_func != NULL) {
251 storage[i]->new_func(obj, ptr, ad, i,
252 storage[i]->argl, storage[i]->argp);
255 if (storage != stack)
256 OPENSSL_free(storage);
275 EX_CALLBACK **storage = NULL;
299 storage = stack;
301 storage = OPENSSL_malloc(sizeof(*storage) * mx);
302 if (storage != NULL)
304 storage[i] = sk_EX_CALLBACK_value(ip->meth, i);
310 if (storage == NULL) {
326 if (storage[i] != NULL && storage[i]->dup_func != NULL)
327 if (!storage[i]->dup_func(to, from, &ptr, i,
328 storage[i]->argl, storage[i]->argp))
334 if (storage != stack)
335 OPENSSL_free(storage);
372 struct ex_callback_entry *storage = NULL;
385 storage = stack;
387 storage = OPENSSL_malloc(sizeof(*storage) * mx);
388 if (storage != NULL)
390 storage[i].excb = sk_EX_CALLBACK_value(ip->meth, i);
391 storage[i].index = i;
396 if (storage != NULL) {
398 qsort(storage, mx, sizeof(*storage), ex_callback_compare);
400 f = storage[i].excb;
403 ptr = CRYPTO_get_ex_data(ad, storage[i].index);
404 f->free_func(obj, ptr, ad, storage[i].index, f->argl, f->argp);
409 if (storage != stack)
410 OPENSSL_free(storage);