Lines Matching refs:NULL

61     if (namemap != NULL)  in ossl_stored_namemap_new()
71 if (namemap != NULL) { in ossl_stored_namemap_free()
89 if (namemap == NULL) in ossl_namemap_empty()
99 return namemap == NULL || tsan_load(&namemap->max_number) == 0; in ossl_namemap_empty()
115 if (namemap == NULL || number <= 0) in ossl_namemap_doall_names()
127 if (names != NULL) in ossl_namemap_doall_names()
132 if (names == NULL) in ossl_namemap_doall_names()
149 if (namemap == NULL) in ossl_namemap_name2num()
150 namemap = ossl_namemap_stored(NULL); in ossl_namemap_name2num()
153 if (namemap == NULL) in ossl_namemap_name2num()
161 if (val != NULL) in ossl_namemap_name2num()
175 if (name == NULL || (tmp = OPENSSL_strndup(name, name_len)) == NULL) in ossl_namemap_name2num_n()
187 const char *ret = NULL; in ossl_namemap_num2name()
189 if (namemap == NULL || number <= 0) in ossl_namemap_num2name()
190 return NULL; in ossl_namemap_num2name()
193 return NULL; in ossl_namemap_num2name()
196 if (names != NULL) in ossl_namemap_num2name()
213 if (!ossl_assert(names != NULL)) { in numname_insert()
220 if (names == NULL) in numname_insert()
224 if ((tmpname = OPENSSL_strdup(name)) == NULL) in numname_insert()
265 ret = ossl_ht_insert(namemap->namenum_ht, TO_HT_KEY(&key), &val, NULL); in namemap_add_name()
282 if (namemap == NULL) in ossl_namemap_add_name()
283 namemap = ossl_namemap_stored(NULL); in ossl_namemap_add_name()
286 if (name == NULL || *name == 0 || namemap == NULL) in ossl_namemap_add_name()
302 if (!ossl_assert(namemap != NULL)) { in ossl_namemap_add_names()
307 if ((tmp = OPENSSL_strdup(names)) == NULL) in ossl_namemap_add_names()
322 if ((q = strchr(p, separator)) == NULL) { in ossl_namemap_add_names()
397 if ((obj = OBJ_nid2obj(nid)) != NULL) { in get_legacy_evp_names()
404 if (pem_name != NULL) in get_legacy_evp_names()
412 if (cipher != NULL) in get_legacy_cipher_names()
413 get_legacy_evp_names(NID_undef, EVP_CIPHER_get_type(cipher), NULL, arg); in get_legacy_cipher_names()
420 if (md != NULL) in get_legacy_md_names()
421 get_legacy_evp_names(0, EVP_MD_get_type(md), NULL, arg); in get_legacy_md_names()
428 const char *pem_name = NULL; in get_legacy_pkey_meth_names()
430 EVP_PKEY_asn1_get0_info(&nid, &base_nid, &flags, NULL, &pem_name, ameth); in get_legacy_pkey_meth_names()
477 if (namemap == NULL) in ossl_namemap_stored()
478 return NULL; in ossl_namemap_stored()
487 return NULL; in ossl_namemap_stored()
494 | OPENSSL_INIT_ADD_ALL_DIGESTS, NULL); in ossl_namemap_stored()
513 HT_CONFIG htconf = { NULL, NULL, NULL, NAMEMAP_HT_BUCKETS, 1, 1 }; in ossl_namemap_new()
517 if ((namemap = OPENSSL_zalloc(sizeof(*namemap))) == NULL) in ossl_namemap_new()
520 if ((namemap->lock = CRYPTO_THREAD_lock_new()) == NULL) in ossl_namemap_new()
523 if ((namemap->namenum_ht = ossl_ht_new(&htconf)) == NULL) in ossl_namemap_new()
526 if ((namemap->numnames = sk_NAMES_new_null()) == NULL) in ossl_namemap_new()
533 return NULL; in ossl_namemap_new()
538 if (namemap == NULL || namemap->stored) in ossl_namemap_free()