Lines Matching refs:NULL

18     if (global == NULL)  in ossl_do_ex_data_init()
22 return global->ex_data_lock != NULL; in ossl_do_ex_data_init()
38 return NULL; in get_and_lock()
41 if (global->ex_data_lock == NULL) { in get_and_lock()
46 return NULL; in get_and_lock()
51 return NULL; in get_and_lock()
54 return NULL; in get_and_lock()
77 if (global == NULL) in ossl_crypto_cleanup_all_ex_data_int()
84 ip->meth = NULL; in ossl_crypto_cleanup_all_ex_data_int()
88 global->ex_data_lock = NULL; in ossl_crypto_cleanup_all_ex_data_int()
120 if (global == NULL) in ossl_crypto_free_ex_index_ex()
124 if (ip == NULL) in ossl_crypto_free_ex_index_ex()
130 if (a == NULL) in ossl_crypto_free_ex_index_ex()
143 return ossl_crypto_free_ex_index_ex(NULL, class_index, idx); in CRYPTO_free_ex_index()
161 if (global == NULL) in ossl_crypto_get_ex_new_index_ex()
165 if (ip == NULL) in ossl_crypto_get_ex_new_index_ex()
168 if (ip->meth == NULL) { in ossl_crypto_get_ex_new_index_ex()
172 if (ip->meth == NULL in ossl_crypto_get_ex_new_index_ex()
173 || !sk_EX_CALLBACK_push(ip->meth, NULL)) { in ossl_crypto_get_ex_new_index_ex()
175 ip->meth = NULL; in ossl_crypto_get_ex_new_index_ex()
182 if (a == NULL) in ossl_crypto_get_ex_new_index_ex()
191 if (!sk_EX_CALLBACK_push(ip->meth, NULL)) { in ossl_crypto_get_ex_new_index_ex()
208 return ossl_crypto_get_ex_new_index_ex(NULL, class_index, argl, argp, in CRYPTO_get_ex_new_index()
224 EX_CALLBACK **storage = NULL; in ossl_crypto_new_ex_data_ex()
229 if (global == NULL) in ossl_crypto_new_ex_data_ex()
233 if (ip == NULL) in ossl_crypto_new_ex_data_ex()
237 ad->sk = NULL; in ossl_crypto_new_ex_data_ex()
244 if (storage != NULL) in ossl_crypto_new_ex_data_ex()
250 if (mx > 0 && storage == NULL) in ossl_crypto_new_ex_data_ex()
253 if (storage[i] != NULL && storage[i]->new_func != NULL) { in ossl_crypto_new_ex_data_ex()
266 return ossl_crypto_new_ex_data_ex(NULL, class_index, obj, ad); in CRYPTO_new_ex_data()
279 EX_CALLBACK **storage = NULL; in CRYPTO_dup_ex_data()
285 if (from->sk == NULL) in CRYPTO_dup_ex_data()
290 if (global == NULL) in CRYPTO_dup_ex_data()
294 if (ip == NULL) in CRYPTO_dup_ex_data()
306 if (storage != NULL) in CRYPTO_dup_ex_data()
314 if (storage == NULL) in CRYPTO_dup_ex_data()
328 if (storage[i] != NULL && storage[i]->dup_func != NULL) in CRYPTO_dup_ex_data()
354 if (ap->excb == NULL) in ex_callback_compare()
356 if (bp->excb == NULL) in ex_callback_compare()
374 struct ex_callback_entry *storage = NULL; in CRYPTO_free_ex_data()
377 if (global == NULL) in CRYPTO_free_ex_data()
381 if (ip == NULL) in CRYPTO_free_ex_data()
390 if (storage != NULL) in CRYPTO_free_ex_data()
398 if (storage != NULL) { in CRYPTO_free_ex_data()
404 if (f != NULL && f->free_func != NULL) { in CRYPTO_free_ex_data()
415 ad->sk = NULL; in CRYPTO_free_ex_data()
416 ad->ctx = NULL; in CRYPTO_free_ex_data()
430 if (curval != NULL) in CRYPTO_alloc_ex_data()
444 if (global == NULL) in ossl_crypto_alloc_ex_data_intern()
448 if (ip == NULL) in ossl_crypto_alloc_ex_data_intern()
457 if (f->new_func == NULL) in ossl_crypto_alloc_ex_data_intern()
460 f->new_func(obj, NULL, ad, idx, f->argl, f->argp); in ossl_crypto_alloc_ex_data_intern()
473 if (ad->sk == NULL) { in CRYPTO_set_ex_data()
474 if ((ad->sk = sk_void_new_null()) == NULL) { in CRYPTO_set_ex_data()
481 if (!sk_void_push(ad->sk, NULL)) { in CRYPTO_set_ex_data()
500 if (ad->sk == NULL || idx >= sk_void_num(ad->sk)) in CRYPTO_get_ex_data()
501 return NULL; in CRYPTO_get_ex_data()