Lines Matching refs:NULL

38     if (ctx == NULL)  in mock_srv_ctx_free()
54 if (ctx == NULL) in mock_srv_ctx_new()
57 if ((ctx->statusOut = OSSL_CMP_PKISI_new()) == NULL) in mock_srv_ctx_new()
66 return NULL; in mock_srv_ctx_new()
75 if (ctx == NULL) { \
79 if (cert == NULL || X509_up_ref(cert)) { \
95 if (ctx == NULL) { in DEFINE_OSSL_SET1_CERT()
99 if (crl != NULL && !X509_CRL_up_ref(crl)) in DEFINE_OSSL_SET1_CERT()
110 STACK_OF(X509) *chain_copy = NULL; in ossl_cmp_mock_srv_set1_chainOut()
112 if (ctx == NULL) { in ossl_cmp_mock_srv_set1_chainOut()
116 if (chain != NULL && (chain_copy = X509_chain_up_ref(chain)) == NULL) in ossl_cmp_mock_srv_set1_chainOut()
127 STACK_OF(X509) *caPubs_copy = NULL; in ossl_cmp_mock_srv_set1_caPubsOut()
129 if (ctx == NULL) { in ossl_cmp_mock_srv_set1_caPubsOut()
133 if (caPubs != NULL && (caPubs_copy = X509_chain_up_ref(caPubs)) == NULL) in ossl_cmp_mock_srv_set1_caPubsOut()
150 if (ctx == NULL) { in DEFINE_OSSL_SET1_CERT()
154 if ((si = OSSL_CMP_STATUSINFO_new(status, fail_info, text)) == NULL) in DEFINE_OSSL_SET1_CERT()
165 if (ctx == NULL) { in ossl_cmp_mock_srv_set_sendError()
178 if (ctx == NULL) { in ossl_cmp_mock_srv_set_pollCount()
194 if (ctx == NULL) { in ossl_cmp_mock_srv_set_checkAfterTime()
208 if (ctx == NULL || req == NULL) { in delayed_delivery()
227 if ((ctx->req = OSSL_CMP_MSG_dup(req)) == NULL) in delayed_delivery()
241 if (refcert == NULL) in refcert_cmp()
245 return (ref_issuer == NULL || X509_NAME_cmp(issuer, ref_issuer) == 0) in refcert_cmp()
246 && (ref_serial == NULL || ASN1_INTEGER_cmp(serial, ref_serial) == 0); in refcert_cmp()
255 if (ctx == NULL) { in clean_transaction()
262 ctx->req = NULL; in clean_transaction()
277 OSSL_CMP_PKISI *si = NULL; in process_cert_request()
279 if (ctx == NULL || cert_req == NULL in process_cert_request()
280 || certOut == NULL || chainOut == NULL || caPubs == NULL) { in process_cert_request()
282 return NULL; in process_cert_request()
287 return NULL; in process_cert_request()
290 *certOut = NULL; in process_cert_request()
291 *chainOut = NULL; in process_cert_request()
292 *caPubs = NULL; in process_cert_request()
296 if ((ctx->req = OSSL_CMP_MSG_dup(cert_req)) == NULL) in process_cert_request()
297 return NULL; in process_cert_request()
298 return OSSL_CMP_STATUSINFO_new(OSSL_CMP_PKISTATUS_waiting, 0, NULL); in process_cert_request()
319 return NULL; in process_cert_request()
322 return NULL; in process_cert_request()
325 if (str == NULL in process_cert_request()
327 (const char *)ASN1_STRING_get0_data(str)) == NULL) { in process_cert_request()
329 return NULL; in process_cert_request()
333 return NULL; in process_cert_request()
342 && crm != NULL /* thus not p10cr */ && ctx->refCert != NULL) { in process_cert_request()
345 if (cid == NULL) { in process_cert_request()
347 return NULL; in process_cert_request()
353 return NULL; in process_cert_request()
357 if (ctx->certOut != NULL in process_cert_request()
358 && (*certOut = X509_dup(ctx->certOut)) == NULL) in process_cert_request()
361 if (ctx->chainOut != NULL in process_cert_request()
362 && (*chainOut = X509_chain_up_ref(ctx->chainOut)) == NULL) in process_cert_request()
364 if (ctx->caPubsOut != NULL /* OSSL_CMP_PKIBODY_IP not visible here */ in process_cert_request()
365 && (*caPubs = X509_chain_up_ref(ctx->caPubsOut)) == NULL) in process_cert_request()
367 if (ctx->statusOut != NULL in process_cert_request()
368 && (si = OSSL_CMP_PKISI_dup(ctx->statusOut)) == NULL) in process_cert_request()
374 *certOut = NULL; in process_cert_request()
376 *chainOut = NULL; in process_cert_request()
378 *caPubs = NULL; in process_cert_request()
379 return NULL; in process_cert_request()
389 if (ctx == NULL || rr == NULL) { in process_rr()
391 return NULL; in process_rr()
396 return NULL; in process_rr()
400 if ((issuer != NULL || serial != NULL) in process_rr()
405 return NULL; in process_rr()
415 DIST_POINT_NAME *dpn = NULL; in check_client_crl()
416 GENERAL_NAMES *issuer = NULL; in check_client_crl()
417 ASN1_TIME *thisupd = NULL; in check_client_crl()
423 if (crl == NULL) in check_client_crl()
430 if (issuer != NULL) { in check_client_crl()
433 if (gn != NULL && gn->type == GEN_DIRNAME) { in check_client_crl()
446 return thisupd == NULL in check_client_crl()
453 OSSL_CMP_ITAV *rsp = NULL; in process_genm_itav()
461 X509 *rootcacert = NULL; in process_genm_itav()
464 return NULL; in process_genm_itav()
466 if (rootcacert != NULL in process_genm_itav()
470 rsp = OSSL_CMP_ITAV_new_rootCaKeyUpdate(NULL, NULL, NULL); in process_genm_itav()
479 STACK_OF(OSSL_CMP_CRLSTATUS) *crlstatuslist = NULL; in process_genm_itav()
483 return NULL; in process_genm_itav()
487 rsp = NULL; in process_genm_itav()
489 rsp = OSSL_CMP_ITAV_new_crls(res == 0 ? NULL : ctx->crlOut); in process_genm_itav()
495 OSSL_CMP_ATAVS *keyspec = NULL; in process_genm_itav()
496 X509_ALGOR *keyalg = NULL; in process_genm_itav()
500 if ((reqtemp = OSSL_CRMF_CERTTEMPLATE_new()) == NULL) in process_genm_itav()
501 return NULL; in process_genm_itav()
503 if (!OSSL_CRMF_CERTTEMPLATE_fill(reqtemp, NULL, NULL, in process_genm_itav()
505 NULL)) in process_genm_itav()
508 if ((keyalg = X509_ALGOR_new()) == NULL) in process_genm_itav()
512 V_ASN1_UNDEF, NULL); /* cannot fail */ in process_genm_itav()
531 return NULL; in process_genm_itav()
547 if (ctx == NULL || genm == NULL || in == NULL || out == NULL) { in process_genm()
561 if ((*out = sk_OSSL_CMP_ITAV_new_reserve(NULL, 1)) == NULL) in process_genm()
564 if (rsp != NULL && sk_OSSL_CMP_ITAV_push(*out, rsp)) in process_genm()
572 return *out != NULL; in process_genm()
585 if (ctx == NULL || error == NULL) { in process_error()
592 if (statusInfo == NULL) { in process_error()
597 sibuf != NULL ? sibuf: "<invalid>"); in process_error()
600 if (errorCode == NULL) in process_error()
629 if (ctx == NULL || certConf == NULL || certHash == NULL) { in process_certConf()
635 || ctx->certOut == NULL) { in process_certConf()
640 if ((digest = X509_digest_sig(ctx->certOut, NULL, NULL)) == NULL) in process_certConf()
659 if (req != NULL) in process_pollReq()
660 *req = NULL; in process_pollReq()
661 if (ctx == NULL || pollReq == NULL in process_pollReq()
662 || req == NULL || check_after == NULL) { in process_pollReq()
672 if (ctx->req == NULL) { /* not currently in polling mode */ in process_pollReq()
680 ctx->req = NULL; in process_pollReq()
693 if (srv_ctx != NULL && ctx != NULL in ossl_cmp_mock_srv_new()
703 return NULL; in ossl_cmp_mock_srv_new()
708 if (srv_ctx != NULL) in ossl_cmp_mock_srv_free()