Lines Matching refs:NULL

39    if (params != NULL) {  in loader_set_params()
44 if (propq != NULL) { in loader_set_params()
48 OSSL_STORE_PARAM_PROPERTIES) != NULL) in loader_set_params()
70 const OSSL_STORE_LOADER *loader = NULL; in OSSL_STORE_open_ex()
71 OSSL_STORE_LOADER *fetched_loader = NULL; in OSSL_STORE_open_ex()
72 OSSL_STORE_LOADER_CTX *loader_ctx = NULL; in OSSL_STORE_open_ex()
73 OSSL_STORE_CTX *ctx = NULL; in OSSL_STORE_open_ex()
74 char *propq_copy = NULL; in OSSL_STORE_open_ex()
76 char scheme_copy[256], *p, *schemes[2], *scheme = NULL; in OSSL_STORE_open_ex()
95 if ((p = strchr(scheme_copy, ':')) != NULL) { in OSSL_STORE_open_ex()
106 if (ui_method != NULL in OSSL_STORE_open_ex()
121 for (i = 0; loader_ctx == NULL && i < schemes_n; i++) { in OSSL_STORE_open_ex()
126 if ((loader = ossl_store_get0_loader_int(scheme)) != NULL) { in OSSL_STORE_open_ex()
129 if (loader->open_ex != NULL) in OSSL_STORE_open_ex()
138 if (loader == NULL in OSSL_STORE_open_ex()
140 OSSL_STORE_LOADER_fetch(libctx, scheme, propq)) != NULL) { in OSSL_STORE_open_ex()
146 if (fetched_loader->p_open_ex != NULL) { in OSSL_STORE_open_ex()
152 if (fetched_loader->p_open != NULL && in OSSL_STORE_open_ex()
153 (loader_ctx = fetched_loader->p_open(provctx, uri)) != NULL && in OSSL_STORE_open_ex()
157 loader_ctx = NULL; in OSSL_STORE_open_ex()
160 if (loader_ctx == NULL) { in OSSL_STORE_open_ex()
162 fetched_loader = NULL; in OSSL_STORE_open_ex()
180 if (loader_ctx == NULL) in OSSL_STORE_open_ex()
189 if ((propq != NULL && (propq_copy = OPENSSL_strdup(propq)) == NULL) in OSSL_STORE_open_ex()
190 || (ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) in OSSL_STORE_open_ex()
212 if (loader_ctx != NULL) { in OSSL_STORE_open_ex()
217 OSSL_STORE_CTX tmpctx = { NULL, }; in OSSL_STORE_open_ex()
235 return NULL; in OSSL_STORE_open_ex()
243 return OSSL_STORE_open_ex(uri, NULL, NULL, ui_method, ui_data, NULL, in OSSL_STORE_open()
262 if (ctx->fetched_loader != NULL) { in OSSL_STORE_vctrl()
263 if (ctx->fetched_loader->p_set_ctx_params != NULL) { in OSSL_STORE_vctrl()
281 } else if (ctx->loader->ctrl != NULL) { in OSSL_STORE_vctrl()
297 if (ctx == NULL in OSSL_STORE_expect()
308 if (ctx->fetched_loader != NULL in OSSL_STORE_expect()
309 && ctx->fetched_loader->p_set_ctx_params != NULL) { in OSSL_STORE_expect()
317 if (ctx->fetched_loader == NULL in OSSL_STORE_expect()
318 && ctx->loader->expect != NULL) { in OSSL_STORE_expect()
333 if (search == NULL) { in OSSL_STORE_find()
338 if (ctx->fetched_loader != NULL) { in OSSL_STORE_find()
342 void *name_der = NULL; in OSSL_STORE_find()
345 BIGNUM *number = NULL; in OSSL_STORE_find()
347 if (ctx->fetched_loader->p_set_ctx_params == NULL) { in OSSL_STORE_find()
352 if ((bld = OSSL_PARAM_BLD_new()) == NULL) { in OSSL_STORE_find()
371 && (number = ASN1_INTEGER_to_BN(search->serial, NULL)) != NULL in OSSL_STORE_find()
408 if (ctx->loader->find == NULL) { in OSSL_STORE_find()
421 OSSL_STORE_INFO *v = NULL; in OSSL_STORE_load()
426 return NULL; in OSSL_STORE_load()
428 if (ctx->loader != NULL) in OSSL_STORE_load()
431 if (ctx->cached_info != NULL in OSSL_STORE_load()
434 ctx->cached_info = NULL; in OSSL_STORE_load()
437 if (ctx->cached_info != NULL) { in OSSL_STORE_load()
440 if (ctx->fetched_loader != NULL) { in OSSL_STORE_load()
443 load_data.v = NULL; in OSSL_STORE_load()
453 return NULL; in OSSL_STORE_load()
458 if (ctx->fetched_loader == NULL) in OSSL_STORE_load()
465 if (ctx->post_process != NULL && v != NULL) { in OSSL_STORE_load()
472 if (v == NULL) in OSSL_STORE_load()
479 if (v != NULL && ctx->expected_type != 0) { in OSSL_STORE_load()
490 if (v != NULL) in OSSL_STORE_load()
501 OSSL_STORE_LOADER *fetched_loader = NULL; in OSSL_STORE_delete()
507 if ((p = strchr(scheme, ':')) != NULL) in OSSL_STORE_delete()
512 if (ui_method != NULL in OSSL_STORE_delete()
522 if (fetched_loader != NULL && fetched_loader->p_delete != NULL) { in OSSL_STORE_delete()
548 if (ctx->fetched_loader != NULL) in OSSL_STORE_error()
551 if (ctx->fetched_loader == NULL) in OSSL_STORE_error()
561 if (ctx->fetched_loader != NULL) in OSSL_STORE_eof()
564 if (ctx->fetched_loader == NULL) in OSSL_STORE_eof()
574 if (ctx == NULL) in ossl_store_close_it()
578 if (ctx->fetched_loader != NULL) in ossl_store_close_it()
581 if (ctx->fetched_loader == NULL) in ossl_store_close_it()
611 if (info == NULL) in OSSL_STORE_INFO_new()
612 return NULL; in OSSL_STORE_INFO_new()
621 OSSL_STORE_INFO *info = OSSL_STORE_INFO_new(OSSL_STORE_INFO_NAME, NULL); in OSSL_STORE_INFO_new_NAME()
623 if (info == NULL) { in OSSL_STORE_INFO_new_NAME()
625 return NULL; in OSSL_STORE_INFO_new_NAME()
629 info->_.name.desc = NULL; in OSSL_STORE_INFO_new_NAME()
649 if (info == NULL) in OSSL_STORE_INFO_new_PARAMS()
658 if (info == NULL) in OSSL_STORE_INFO_new_PUBKEY()
667 if (info == NULL) in OSSL_STORE_INFO_new_PKEY()
676 if (info == NULL) in OSSL_STORE_INFO_new_CERT()
685 if (info == NULL) in OSSL_STORE_INFO_new_CRL()
702 return NULL; in OSSL_STORE_INFO_get0_data()
709 return NULL; in OSSL_STORE_INFO_get0_NAME()
717 return NULL; in OSSL_STORE_INFO_get1_NAME()
724 return NULL; in OSSL_STORE_INFO_get0_NAME_description()
732 return NULL; in OSSL_STORE_INFO_get1_NAME_description()
739 return NULL; in OSSL_STORE_INFO_get0_PARAMS()
749 return NULL; in OSSL_STORE_INFO_get1_PARAMS()
756 return NULL; in OSSL_STORE_INFO_get0_PUBKEY()
766 return NULL; in OSSL_STORE_INFO_get1_PUBKEY()
773 return NULL; in OSSL_STORE_INFO_get0_PKEY()
783 return NULL; in OSSL_STORE_INFO_get1_PKEY()
790 return NULL; in OSSL_STORE_INFO_get0_CERT()
800 return NULL; in OSSL_STORE_INFO_get1_CERT()
807 return NULL; in OSSL_STORE_INFO_get0_CRL()
817 return NULL; in OSSL_STORE_INFO_get1_CRL()
825 if (info != NULL) { in OSSL_STORE_INFO_free()
855 if (ctx->fetched_loader != NULL) { in OSSL_STORE_supports_search()
859 const OSSL_PARAM *p_subject = NULL; in OSSL_STORE_supports_search()
860 const OSSL_PARAM *p_issuer = NULL; in OSSL_STORE_supports_search()
861 const OSSL_PARAM *p_serial = NULL; in OSSL_STORE_supports_search()
862 const OSSL_PARAM *p_fingerprint = NULL; in OSSL_STORE_supports_search()
863 const OSSL_PARAM *p_alias = NULL; in OSSL_STORE_supports_search()
865 if (ctx->fetched_loader->p_settable_ctx_params == NULL) in OSSL_STORE_supports_search()
878 ret = (p_subject != NULL); in OSSL_STORE_supports_search()
881 ret = (p_issuer != NULL && p_serial != NULL); in OSSL_STORE_supports_search()
884 ret = (p_fingerprint != NULL); in OSSL_STORE_supports_search()
887 ret = (p_alias != NULL); in OSSL_STORE_supports_search()
892 if (ctx->fetched_loader == NULL) { in OSSL_STORE_supports_search()
895 if (ctx->loader->find == NULL) in OSSL_STORE_supports_search()
898 ret = ctx->loader->find(NULL, &tmp_search); in OSSL_STORE_supports_search()
909 if (search == NULL) in OSSL_STORE_SEARCH_by_name()
910 return NULL; in OSSL_STORE_SEARCH_by_name()
922 if (search == NULL) in OSSL_STORE_SEARCH_by_issuer_serial()
923 return NULL; in OSSL_STORE_SEARCH_by_issuer_serial()
938 if (search == NULL) in OSSL_STORE_SEARCH_by_key_fingerprint()
939 return NULL; in OSSL_STORE_SEARCH_by_key_fingerprint()
944 return NULL; in OSSL_STORE_SEARCH_by_key_fingerprint()
947 if (digest != NULL && len != (size_t)md_size) { in OSSL_STORE_SEARCH_by_key_fingerprint()
953 return NULL; in OSSL_STORE_SEARCH_by_key_fingerprint()
967 if (search == NULL) in OSSL_STORE_SEARCH_by_alias()
968 return NULL; in OSSL_STORE_SEARCH_by_alias()
1023 const OSSL_STORE_LOADER *loader = NULL; in OSSL_STORE_attach()
1024 OSSL_STORE_LOADER *fetched_loader = NULL; in OSSL_STORE_attach()
1025 OSSL_STORE_LOADER_CTX *loader_ctx = NULL; in OSSL_STORE_attach()
1026 OSSL_STORE_CTX *ctx = NULL; in OSSL_STORE_attach()
1028 if (scheme == NULL) in OSSL_STORE_attach()
1034 if ((loader = ossl_store_get0_loader_int(scheme)) != NULL) in OSSL_STORE_attach()
1038 if (loader == NULL in OSSL_STORE_attach()
1040 OSSL_STORE_LOADER_fetch(libctx, scheme, propq)) != NULL) { in OSSL_STORE_attach()
1046 if (cbio == NULL in OSSL_STORE_attach()
1047 || fetched_loader->p_attach == NULL in OSSL_STORE_attach()
1048 || (loader_ctx = fetched_loader->p_attach(provctx, cbio)) == NULL) { in OSSL_STORE_attach()
1050 fetched_loader = NULL; in OSSL_STORE_attach()
1055 fetched_loader = NULL; in OSSL_STORE_attach()
1061 if (loader_ctx == NULL) { in OSSL_STORE_attach()
1063 return NULL; in OSSL_STORE_attach()
1066 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in OSSL_STORE_attach()
1068 return NULL; in OSSL_STORE_attach()
1071 if (ui_method != NULL in OSSL_STORE_attach()
1075 return NULL; in OSSL_STORE_attach()