Lines Matching refs:NULL

112     QUIC_SRTM *srtm = NULL;  in ossl_quic_srtm_new()
114 EVP_CIPHER *ecb = NULL; in ossl_quic_srtm_new()
119 if ((srtm = OPENSSL_zalloc(sizeof(*srtm))) == NULL) in ossl_quic_srtm_new()
120 return NULL; in ossl_quic_srtm_new()
123 if ((ecb = EVP_CIPHER_fetch(libctx, "AES-128-ECB", propq)) == NULL) in ossl_quic_srtm_new()
126 if ((srtm->blind_ctx = EVP_CIPHER_CTX_new()) == NULL) in ossl_quic_srtm_new()
129 if (!EVP_EncryptInit_ex2(srtm->blind_ctx, ecb, key, NULL, NULL)) in ossl_quic_srtm_new()
133 ecb = NULL; in ossl_quic_srtm_new()
136 if ((srtm->items_fwd = lh_SRTM_ITEM_new(items_fwd_hash, items_fwd_cmp)) == NULL in ossl_quic_srtm_new()
137 || (srtm->items_rev = lh_SRTM_ITEM_new(items_rev_hash, items_rev_cmp)) == NULL) in ossl_quic_srtm_new()
149 return NULL; in ossl_quic_srtm_new()
156 for (item = item->next_by_seq_num; item != NULL; item = inext) { in srtm_free_each()
166 if (srtm == NULL) in ossl_quic_srtm_free()
170 if (srtm->items_fwd != NULL) { in ossl_quic_srtm_free()
189 SRTM_ITEM key, *item = NULL, *prev = NULL; in srtm_find()
194 if (head_p != NULL) in srtm_find()
197 for (; item != NULL; prev = item, item = item->next_by_seq_num) in srtm_find()
205 item = NULL; in srtm_find()
209 if (prev_p != NULL) in srtm_find()
227 while (cur != NULL && cur->seq_num > seq_num) { in sorted_insert_seq_num()
248 while (cur != NULL && (uintptr_t)cur->opaque > opaque) { in sorted_insert_srt()
285 SRTM_ITEM *item = NULL, *head = NULL, *new_head, *r_item; in ossl_quic_srtm_add()
291 if ((item = srtm_find(srtm, opaque, seq_num, &head, NULL)) != NULL) in ossl_quic_srtm_add()
294 if ((item = OPENSSL_zalloc(sizeof(*item))) == NULL) in ossl_quic_srtm_add()
306 if (head == NULL) { in ossl_quic_srtm_add()
326 if (r_item == NULL) { in ossl_quic_srtm_add()
356 assert(rh_item != NULL); in srtm_remove_from_rev()
362 if (item->next_by_srt_blinded != NULL) { in srtm_remove_from_rev()
381 SRTM_ITEM *item, *prev = NULL; in ossl_quic_srtm_remove()
386 if ((item = srtm_find(srtm, opaque, seq_num, NULL, &prev)) == NULL) in ossl_quic_srtm_remove()
391 if (prev == NULL) { in ossl_quic_srtm_remove()
396 if (item->next_by_seq_num != NULL) { in ossl_quic_srtm_remove()
417 SRTM_ITEM key, *item = NULL, *inext, *ihead; in ossl_quic_srtm_cull()
424 if ((ihead = lh_SRTM_ITEM_retrieve(srtm->items_fwd, &key)) == NULL) in ossl_quic_srtm_cull()
427 for (item = ihead; item != NULL; item = inext) { in ossl_quic_srtm_cull()
455 for (; idx > 0 && item != NULL; --idx, item = item->next_by_srt_blinded); in ossl_quic_srtm_lookup()
456 if (item == NULL) in ossl_quic_srtm_lookup()
459 if (opaque != NULL) in ossl_quic_srtm_lookup()
461 if (seq_num != NULL) in ossl_quic_srtm_lookup()
482 void *prev_opaque = NULL; in check_mark()
485 assert(item != NULL); in check_mark()
487 while (item != NULL) { in check_mark()
512 assert(item != NULL); in check_count()
514 while (item != NULL) { in check_count()
536 assert(srtm != NULL); in ossl_quic_srtm_check()
537 assert(srtm->blind_ctx != NULL); in ossl_quic_srtm_check()
538 assert(srtm->items_fwd != NULL); in ossl_quic_srtm_check()
539 assert(srtm->items_rev != NULL); in ossl_quic_srtm_check()