Lines Matching refs:NULL

39     if (ctx == NULL)  in mock_srv_ctx_free()
55 if (ctx == NULL) in mock_srv_ctx_new()
58 if ((ctx->statusOut = OSSL_CMP_PKISI_new()) == NULL) in mock_srv_ctx_new()
67 return NULL; in mock_srv_ctx_new()
76 if (ctx == NULL) { \
80 if (cert == NULL || X509_up_ref(cert)) { \
96 if (ctx == NULL) { in DEFINE_OSSL_SET1_CERT()
100 if (crl != NULL && !X509_CRL_up_ref(crl)) in DEFINE_OSSL_SET1_CERT()
111 STACK_OF(X509) *chain_copy = NULL; in ossl_cmp_mock_srv_set1_chainOut()
113 if (ctx == NULL) { in ossl_cmp_mock_srv_set1_chainOut()
117 if (chain != NULL && (chain_copy = X509_chain_up_ref(chain)) == NULL) in ossl_cmp_mock_srv_set1_chainOut()
128 STACK_OF(X509) *caPubs_copy = NULL; in ossl_cmp_mock_srv_set1_caPubsOut()
130 if (ctx == NULL) { in ossl_cmp_mock_srv_set1_caPubsOut()
134 if (caPubs != NULL && (caPubs_copy = X509_chain_up_ref(caPubs)) == NULL) in ossl_cmp_mock_srv_set1_caPubsOut()
151 if (ctx == NULL) { in DEFINE_OSSL_SET1_CERT()
155 if ((si = OSSL_CMP_STATUSINFO_new(status, fail_info, text)) == NULL) in DEFINE_OSSL_SET1_CERT()
166 if (ctx == NULL) { in ossl_cmp_mock_srv_set_sendError()
179 if (ctx == NULL) { in ossl_cmp_mock_srv_set_pollCount()
195 if (ctx == NULL) { in ossl_cmp_mock_srv_set_checkAfterTime()
209 if (ctx == NULL || req == NULL) { in delayed_delivery()
228 if ((ctx->req = OSSL_CMP_MSG_dup(req)) == NULL) in delayed_delivery()
242 if (refcert == NULL) in refcert_cmp()
246 return (ref_issuer == NULL || X509_NAME_cmp(issuer, ref_issuer) == 0) in refcert_cmp()
247 && (ref_serial == NULL || ASN1_INTEGER_cmp(serial, ref_serial) == 0); in refcert_cmp()
256 if (ctx == NULL) { in clean_transaction()
263 ctx->req = NULL; in clean_transaction()
278 OSSL_CMP_PKISI *si = NULL; in process_cert_request()
280 if (ctx == NULL || cert_req == NULL in process_cert_request()
281 || certOut == NULL || chainOut == NULL || caPubs == NULL) { in process_cert_request()
283 return NULL; in process_cert_request()
288 return NULL; in process_cert_request()
291 *certOut = NULL; in process_cert_request()
292 *chainOut = NULL; in process_cert_request()
293 *caPubs = NULL; in process_cert_request()
297 if ((ctx->req = OSSL_CMP_MSG_dup(cert_req)) == NULL) in process_cert_request()
298 return NULL; in process_cert_request()
299 return OSSL_CMP_STATUSINFO_new(OSSL_CMP_PKISTATUS_waiting, 0, NULL); in process_cert_request()
320 return NULL; in process_cert_request()
323 return NULL; in process_cert_request()
326 if (str == NULL in process_cert_request()
328 (const char *)ASN1_STRING_get0_data(str)) == NULL) { in process_cert_request()
330 return NULL; in process_cert_request()
334 return NULL; in process_cert_request()
343 && crm != NULL /* thus not p10cr */ && ctx->refCert != NULL) { in process_cert_request()
346 if (cid == NULL) { in process_cert_request()
348 return NULL; in process_cert_request()
354 return NULL; in process_cert_request()
358 if (ctx->certOut != NULL in process_cert_request()
359 && (*certOut = X509_dup(ctx->certOut)) == NULL) in process_cert_request()
362 if (ctx->chainOut != NULL in process_cert_request()
363 && (*chainOut = X509_chain_up_ref(ctx->chainOut)) == NULL) in process_cert_request()
365 if (ctx->caPubsOut != NULL /* OSSL_CMP_PKIBODY_IP not visible here */ in process_cert_request()
366 && (*caPubs = X509_chain_up_ref(ctx->caPubsOut)) == NULL) in process_cert_request()
368 if (ctx->statusOut != NULL in process_cert_request()
369 && (si = OSSL_CMP_PKISI_dup(ctx->statusOut)) == NULL) in process_cert_request()
375 *certOut = NULL; in process_cert_request()
377 *chainOut = NULL; in process_cert_request()
379 *caPubs = NULL; in process_cert_request()
380 return NULL; in process_cert_request()
390 if (ctx == NULL || rr == NULL) { in process_rr()
392 return NULL; in process_rr()
397 return NULL; in process_rr()
401 if ((issuer != NULL || serial != NULL) in process_rr()
406 return NULL; in process_rr()
416 DIST_POINT_NAME *dpn = NULL; in check_client_crl()
417 GENERAL_NAMES *issuer = NULL; in check_client_crl()
418 ASN1_TIME *thisupd = NULL; in check_client_crl()
424 if (crl == NULL) in check_client_crl()
431 if (issuer != NULL) { in check_client_crl()
434 if (gn != NULL && gn->type == GEN_DIRNAME) { in check_client_crl()
447 return thisupd == NULL in check_client_crl()
454 OSSL_CMP_ITAV *rsp = NULL; in process_genm_itav()
462 X509 *rootcacert = NULL; in process_genm_itav()
465 return NULL; in process_genm_itav()
467 if (rootcacert != NULL in process_genm_itav()
471 rsp = OSSL_CMP_ITAV_new_rootCaKeyUpdate(NULL, NULL, NULL); in process_genm_itav()
480 STACK_OF(OSSL_CMP_CRLSTATUS) *crlstatuslist = NULL; in process_genm_itav()
484 return NULL; in process_genm_itav()
488 rsp = NULL; in process_genm_itav()
490 rsp = OSSL_CMP_ITAV_new_crls(res == 0 ? NULL : ctx->crlOut); in process_genm_itav()
496 OSSL_CMP_ATAVS *keyspec = NULL; in process_genm_itav()
497 X509_ALGOR *keyalg = NULL; in process_genm_itav()
501 if ((reqtemp = OSSL_CRMF_CERTTEMPLATE_new()) == NULL) in process_genm_itav()
502 return NULL; in process_genm_itav()
504 if (!OSSL_CRMF_CERTTEMPLATE_fill(reqtemp, NULL, NULL, in process_genm_itav()
506 NULL)) in process_genm_itav()
509 if ((keyalg = X509_ALGOR_new()) == NULL) in process_genm_itav()
513 V_ASN1_UNDEF, NULL); /* cannot fail */ in process_genm_itav()
532 return NULL; in process_genm_itav()
548 if (ctx == NULL || genm == NULL || in == NULL || out == NULL) { in process_genm()
562 if ((*out = sk_OSSL_CMP_ITAV_new_reserve(NULL, 1)) == NULL) in process_genm()
565 if (rsp != NULL && sk_OSSL_CMP_ITAV_push(*out, rsp)) in process_genm()
573 return *out != NULL; in process_genm()
586 if (ctx == NULL || error == NULL) { in process_error()
593 if (statusInfo == NULL) { in process_error()
598 sibuf != NULL ? sibuf: "<invalid>"); in process_error()
601 if (errorCode == NULL) in process_error()
630 if (ctx == NULL || certConf == NULL || certHash == NULL) { in process_certConf()
636 || ctx->certOut == NULL) { in process_certConf()
641 if ((digest = X509_digest_sig(ctx->certOut, NULL, NULL)) == NULL) in process_certConf()
660 if (req != NULL) in process_pollReq()
661 *req = NULL; in process_pollReq()
662 if (ctx == NULL || pollReq == NULL in process_pollReq()
663 || req == NULL || check_after == NULL) { in process_pollReq()
673 if (ctx->req == NULL) { /* not currently in polling mode */ in process_pollReq()
681 ctx->req = NULL; in process_pollReq()
694 if (srv_ctx != NULL && ctx != NULL in ossl_cmp_mock_srv_new()
704 return NULL; in ossl_cmp_mock_srv_new()
709 if (srv_ctx != NULL) in ossl_cmp_mock_srv_free()