Lines Matching refs:NULL
47 if (srv_ctx == NULL) in OSSL_CMP_SRV_CTX_free()
58 if (ctx == NULL) in OSSL_CMP_SRV_CTX_new()
61 if ((ctx->ctx = OSSL_CMP_CTX_new(libctx, propq)) == NULL) in OSSL_CMP_SRV_CTX_new()
70 return NULL; in OSSL_CMP_SRV_CTX_new()
81 if (srv_ctx == NULL) { in OSSL_CMP_SRV_CTX_init()
99 if (srv_ctx == NULL) { in OSSL_CMP_SRV_CTX_init_trans()
110 if (srv_ctx == NULL) { in OSSL_CMP_SRV_CTX_get0_cmp_ctx()
112 return NULL; in OSSL_CMP_SRV_CTX_get0_cmp_ctx()
119 if (srv_ctx == NULL) { in OSSL_CMP_SRV_CTX_get0_custom_ctx()
121 return NULL; in OSSL_CMP_SRV_CTX_get0_custom_ctx()
129 if (srv_ctx == NULL) { in OSSL_CMP_SRV_CTX_set_send_unprotected_errors()
139 if (srv_ctx == NULL) { in OSSL_CMP_SRV_CTX_set_accept_unprotected()
149 if (srv_ctx == NULL) { in OSSL_CMP_SRV_CTX_set_accept_raverified()
160 if (srv_ctx == NULL) { in OSSL_CMP_SRV_CTX_set_grant_implicit_confirm()
176 const char *txt = NULL, *details = NULL; in delayed_delivery()
180 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL in delayed_delivery()
181 && srv_ctx->delayed_delivery != NULL)) in delayed_delivery()
182 return NULL; in delayed_delivery()
186 return NULL; in delayed_delivery()
199 if (si == NULL) in delayed_delivery()
200 return NULL; in delayed_delivery()
216 OSSL_CMP_MSG *msg = NULL; in process_cert_request()
217 OSSL_CMP_PKISI *si = NULL; in process_cert_request()
218 X509 *certOut = NULL; in process_cert_request()
219 STACK_OF(X509) *chainOut = NULL, *caPubs = NULL; in process_cert_request()
220 const OSSL_CRMF_MSG *crm = NULL; in process_cert_request()
221 const X509_REQ *p10cr = NULL; in process_cert_request()
225 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_cert_request()
226 return NULL; in process_cert_request()
241 return NULL; in process_cert_request()
252 return NULL; in process_cert_request()
254 if ((crm = sk_OSSL_CRMF_MSG_value(reqs, 0)) == NULL) { in process_cert_request()
256 return NULL; in process_cert_request()
261 return NULL; in process_cert_request()
271 if (si == NULL) in process_cert_request()
272 return NULL; in process_cert_request()
278 if (si == NULL) in process_cert_request()
288 && certOut != NULL)) in process_cert_request()
293 certOut, NULL /* enc */, chainOut, caPubs, in process_cert_request()
296 if (msg == NULL) in process_cert_request()
310 OSSL_CMP_MSG *msg = NULL; in process_rr()
312 OSSL_CRMF_CERTID *certId = NULL; in process_rr()
318 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_rr()
319 return NULL; in process_rr()
323 return NULL; in process_rr()
326 if (details == NULL) { in process_rr()
328 return NULL; in process_rr()
334 if (issuer != NULL && serial != NULL in process_rr()
335 && (certId = OSSL_CRMF_CERTID_gen(issuer, serial)) == NULL) in process_rr()
336 return NULL; in process_rr()
337 if ((si = srv_ctx->process_rr(srv_ctx, req, issuer, serial)) == NULL) in process_rr()
341 srv_ctx->sendUnprotectedErrors)) == NULL) in process_rr()
360 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_genm()
361 return NULL; in process_genm()
364 return NULL; in process_genm()
377 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_error()
378 return NULL; in process_error()
383 if ((msg = ossl_cmp_pkiconf_new(srv_ctx->ctx)) == NULL) in process_error()
394 OSSL_CMP_MSG *msg = NULL; in process_certConf()
395 OSSL_CMP_CERTSTATUS *status = NULL; in process_certConf()
397 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_certConf()
398 return NULL; in process_certConf()
407 return NULL; in process_certConf()
418 if (status != NULL) { in process_certConf()
425 return NULL; in process_certConf()
428 return NULL; /* reason code may be: CMP_R_CERTHASH_UNMATCHED */ in process_certConf()
430 if (si != NULL in process_certConf()
436 str == NULL ? "without" : "with", in process_certConf()
437 str == NULL ? "PKIStatus" : str); in process_certConf()
441 if ((msg = ossl_cmp_pkiconf_new(ctx)) == NULL) in process_certConf()
450 OSSL_CMP_MSG *rsp = NULL; in process_non_polling_request()
452 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL in process_non_polling_request()
453 && req->body != NULL)) in process_non_polling_request()
454 return NULL; in process_non_polling_request()
461 if (srv_ctx->process_cert_request == NULL) in process_non_polling_request()
467 if (srv_ctx->process_rr == NULL) in process_non_polling_request()
473 if (srv_ctx->process_genm == NULL) in process_non_polling_request()
479 if (srv_ctx->process_error == NULL) in process_non_polling_request()
485 if (srv_ctx->process_certConf == NULL) in process_non_polling_request()
510 OSSL_CMP_MSG *msg = NULL; in process_pollReq()
512 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_pollReq()
513 return NULL; in process_pollReq()
517 return NULL; in process_pollReq()
523 return NULL; in process_pollReq()
530 return NULL; in process_pollReq()
532 if (orig_req != NULL) { in process_pollReq()
538 check_after)) == NULL) in process_pollReq()
553 if (!ossl_assert(ctx != NULL && req != NULL)) in unprotected_exception()
580 OSSL_CMP_MSG *rsp = NULL; in OSSL_CMP_SRV_process_request()
582 if (srv_ctx == NULL || srv_ctx->ctx == NULL in OSSL_CMP_SRV_process_request()
583 || req == NULL || req->body == NULL in OSSL_CMP_SRV_process_request()
584 || (hdr = OSSL_CMP_MSG_get0_header(req)) == NULL) { in OSSL_CMP_SRV_process_request()
619 if (ctx->transactionID != NULL) { in OSSL_CMP_SRV_process_request()
620 char *tid = i2s_ASN1_OCTET_STRING(NULL, ctx->transactionID); in OSSL_CMP_SRV_process_request()
622 if (tid != NULL) in OSSL_CMP_SRV_process_request()
629 if (!OSSL_CMP_CTX_set1_transactionID(ctx, NULL) in OSSL_CMP_SRV_process_request()
630 || !OSSL_CMP_CTX_set1_senderNonce(ctx, NULL)) in OSSL_CMP_SRV_process_request()
633 if (srv_ctx->clean_transaction != NULL in OSSL_CMP_SRV_process_request()
634 && !srv_ctx->clean_transaction(srv_ctx, NULL)) { in OSSL_CMP_SRV_process_request()
642 if (ctx->transactionID == NULL) { in OSSL_CMP_SRV_process_request()
652 if (ctx->secretValue != NULL && ctx->pkey != NULL in OSSL_CMP_SRV_process_request()
654 ctx->secretValue = NULL; /* use MSG_SIG_ALG when protecting rsp */ in OSSL_CMP_SRV_process_request()
659 if (srv_ctx->process_pollReq == NULL) in OSSL_CMP_SRV_process_request()
664 if (srv_ctx->delayed_delivery != NULL in OSSL_CMP_SRV_process_request()
665 && (rsp = delayed_delivery(srv_ctx, req)) != NULL) { in OSSL_CMP_SRV_process_request()
672 if (rsp == NULL) { in OSSL_CMP_SRV_process_request()
674 const char *data = NULL, *reason = NULL; in OSSL_CMP_SRV_process_request()
679 OSSL_CMP_PKISI *si = NULL; in OSSL_CMP_SRV_process_request()
688 if (ctx->transactionID == NULL) in OSSL_CMP_SRV_process_request()
694 data = NULL; in OSSL_CMP_SRV_process_request()
697 fail_info, reason)) != NULL) { in OSSL_CMP_SRV_process_request()
707 rsp != NULL ? OSSL_CMP_MSG_get_bodytype(rsp) : OSSL_CMP_PKIBODY_ERROR; in OSSL_CMP_SRV_process_request()
708 if (rsp != NULL) in OSSL_CMP_SRV_process_request()
725 if (rsp != NULL && ossl_cmp_is_error_with_waiting(rsp)) in OSSL_CMP_SRV_process_request()
735 if (srv_ctx->clean_transaction != NULL) in OSSL_CMP_SRV_process_request()
737 (void)OSSL_CMP_CTX_set1_transactionID(ctx, NULL); in OSSL_CMP_SRV_process_request()
738 (void)OSSL_CMP_CTX_set1_senderNonce(ctx, NULL); in OSSL_CMP_SRV_process_request()
756 OSSL_CMP_SRV_CTX *srv_ctx = NULL; in OSSL_CMP_CTX_server_perform()
758 if (client_ctx == NULL || req == NULL) { in OSSL_CMP_CTX_server_perform()
760 return NULL; in OSSL_CMP_CTX_server_perform()
763 if ((srv_ctx = OSSL_CMP_CTX_get_transfer_cb_arg(client_ctx)) == NULL) { in OSSL_CMP_CTX_server_perform()
765 return NULL; in OSSL_CMP_CTX_server_perform()