Lines Matching refs:NULL

133                &infotypeandvalue_default_tt, NULL);
181 if (type == NULL || (itav = OSSL_CMP_ITAV_new()) == NULL)
182 return NULL;
196 if (itav == NULL) in OSSL_CMP_ITAV_get0_type()
197 return NULL; in OSSL_CMP_ITAV_get0_type()
203 if (itav == NULL) in OSSL_CMP_ITAV_get0_value()
204 return NULL; in OSSL_CMP_ITAV_get0_value()
213 if (itav_sk_p == NULL || itav == NULL) { in OSSL_CMP_ITAV_push0_stack_item()
218 if (*itav_sk_p == NULL) { in OSSL_CMP_ITAV_push0_stack_item()
219 if ((*itav_sk_p = sk_OSSL_CMP_ITAV_new_null()) == NULL) in OSSL_CMP_ITAV_push0_stack_item()
230 *itav_sk_p = NULL; in OSSL_CMP_ITAV_push0_stack_item()
240 if ((itav = OSSL_CMP_ITAV_new()) == NULL) in OSSL_CMP_ITAV_new0_certProfile()
241 return NULL; in OSSL_CMP_ITAV_new0_certProfile()
250 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_certProfile()
266 if (itav == NULL) in OSSL_CMP_ITAV_new_caCerts()
267 return NULL; in OSSL_CMP_ITAV_new_caCerts()
270 sk_X509_deep_copy(caCerts, X509_dup, X509_free)) == NULL) { in OSSL_CMP_ITAV_new_caCerts()
272 return NULL; in OSSL_CMP_ITAV_new_caCerts()
280 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_caCerts()
289 ? itav->infoValue.caCerts : NULL; in OSSL_CMP_ITAV_get0_caCerts()
297 if (itav == NULL) in OSSL_CMP_ITAV_new_rootCaCert()
298 return NULL; in OSSL_CMP_ITAV_new_rootCaCert()
299 if (rootCaCert != NULL in OSSL_CMP_ITAV_new_rootCaCert()
300 && (itav->infoValue.rootCaCert = X509_dup(rootCaCert)) == NULL) { in OSSL_CMP_ITAV_new_rootCaCert()
302 return NULL; in OSSL_CMP_ITAV_new_rootCaCert()
310 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_rootCaCert()
326 OSSL_CMP_ROOTCAKEYUPDATE *upd = NULL; in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
328 if (newWithNew != NULL) { in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
330 if (upd == NULL) in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
331 return NULL; in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
333 if ((upd->newWithNew = X509_dup(newWithNew)) == NULL) in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
335 if (newWithOld != NULL in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
336 && (upd->newWithOld = X509_dup(newWithOld)) == NULL) in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
338 if (oldWithNew != NULL in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
339 && (upd->oldWithNew = X509_dup(oldWithNew)) == NULL) in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
343 if ((itav = OSSL_CMP_ITAV_new()) == NULL) in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
351 return NULL; in OSSL_CMP_ITAV_new_rootCaKeyUpdate()
361 if (itav == NULL || newWithNew == NULL) { in OSSL_CMP_ITAV_get0_rootCaKeyUpdate()
370 *newWithNew = upd != NULL ? upd->newWithNew : NULL; in OSSL_CMP_ITAV_get0_rootCaKeyUpdate()
371 if (newWithOld != NULL) in OSSL_CMP_ITAV_get0_rootCaKeyUpdate()
372 *newWithOld = upd != NULL ? upd->newWithOld : NULL; in OSSL_CMP_ITAV_get0_rootCaKeyUpdate()
373 if (oldWithNew != NULL) in OSSL_CMP_ITAV_get0_rootCaKeyUpdate()
374 *oldWithNew = upd != NULL ? upd->oldWithNew : NULL; in OSSL_CMP_ITAV_get0_rootCaKeyUpdate()
385 if (certTemplate == NULL && keySpec != NULL) { in OSSL_CMP_ITAV_new0_certReqTemplate()
387 return NULL; in OSSL_CMP_ITAV_new0_certReqTemplate()
389 if ((itav = OSSL_CMP_ITAV_new()) == NULL) in OSSL_CMP_ITAV_new0_certReqTemplate()
390 return NULL; in OSSL_CMP_ITAV_new0_certReqTemplate()
392 if (certTemplate == NULL) in OSSL_CMP_ITAV_new0_certReqTemplate()
395 if ((tmpl = OSSL_CMP_CERTREQTEMPLATE_new()) == NULL) { in OSSL_CMP_ITAV_new0_certReqTemplate()
397 return NULL; in OSSL_CMP_ITAV_new0_certReqTemplate()
411 if (itav == NULL || certTemplate == NULL) { in OSSL_CMP_ITAV_get1_certReqTemplate()
416 *certTemplate = NULL; in OSSL_CMP_ITAV_get1_certReqTemplate()
417 if (keySpec != NULL) in OSSL_CMP_ITAV_get1_certReqTemplate()
418 *keySpec = NULL; in OSSL_CMP_ITAV_get1_certReqTemplate()
425 if (tpl == NULL) /* no requirements available */ in OSSL_CMP_ITAV_get1_certReqTemplate()
428 if ((*certTemplate = OSSL_CRMF_CERTTEMPLATE_dup(tpl->certTemplate)) == NULL) in OSSL_CMP_ITAV_get1_certReqTemplate()
430 if (keySpec != NULL && tpl->keySpec != NULL) { in OSSL_CMP_ITAV_get1_certReqTemplate()
433 *keySpec = sk_OSSL_CRMF_ATTRIBUTETYPEANDVALUE_new_reserve(NULL, n); in OSSL_CMP_ITAV_get1_certReqTemplate()
434 if (*keySpec == NULL) in OSSL_CMP_ITAV_get1_certReqTemplate()
442 if (type == NULL) { in OSSL_CMP_ITAV_get1_certReqTemplate()
453 if (name == NULL) in OSSL_CMP_ITAV_get1_certReqTemplate()
455 if (name == NULL) in OSSL_CMP_ITAV_get1_certReqTemplate()
469 *certTemplate = NULL; in OSSL_CMP_ITAV_get1_certReqTemplate()
471 if (keySpec != NULL) in OSSL_CMP_ITAV_get1_certReqTemplate()
472 *keySpec = NULL; in OSSL_CMP_ITAV_get1_certReqTemplate()
480 if ((atav = OSSL_CRMF_ATTRIBUTETYPEANDVALUE_new()) == NULL) in OSSL_CMP_ATAV_create()
481 return NULL; in OSSL_CMP_ATAV_create()
495 if (atav == NULL) in OSSL_CMP_ATAV_get0_type()
496 return NULL; in OSSL_CMP_ATAV_get0_type()
505 if (alg == NULL) { in OSSL_CMP_ATAV_new_algId()
507 return NULL; in OSSL_CMP_ATAV_new_algId()
509 if ((dup = X509_ALGOR_dup(alg)) == NULL) in OSSL_CMP_ATAV_new_algId()
510 return NULL; in OSSL_CMP_ATAV_new_algId()
513 if (res == NULL) in OSSL_CMP_ATAV_new_algId()
520 if (atav == NULL || OBJ_obj2nid(atav->type) != NID_id_regCtrl_algId) in OSSL_CMP_ATAV_get0_algId()
521 return NULL; in OSSL_CMP_ATAV_get0_algId()
528 OSSL_CMP_ATAV *res = NULL; in OSSL_CMP_ATAV_new_rsaKeyLen()
532 return NULL; in OSSL_CMP_ATAV_new_rsaKeyLen()
534 if ((aint = ASN1_INTEGER_new()) == NULL) in OSSL_CMP_ATAV_new_rsaKeyLen()
535 return NULL; in OSSL_CMP_ATAV_new_rsaKeyLen()
538 (ASN1_TYPE *)aint)) == NULL) in OSSL_CMP_ATAV_new_rsaKeyLen()
547 if (atav == NULL || OBJ_obj2nid(atav->type) != NID_id_regCtrl_rsaKeyLen in OSSL_CMP_ATAV_get_rsaKeyLen()
557 if (atav == NULL) in OSSL_CMP_ATAV_get0_value()
558 return NULL; in OSSL_CMP_ATAV_get0_value()
567 if (sk_p == NULL || atav == NULL) { in OSSL_CMP_ATAV_push1()
572 if (*sk_p == NULL) { in OSSL_CMP_ATAV_push1()
573 if ((*sk_p = sk_OSSL_CRMF_ATTRIBUTETYPEANDVALUE_new_null()) == NULL) in OSSL_CMP_ATAV_push1()
578 … if ((dup = OSSL_CRMF_ATTRIBUTETYPEANDVALUE_dup((OSSL_CRMF_ATTRIBUTETYPEANDVALUE *)atav)) == NULL) in OSSL_CMP_ATAV_push1()
587 *sk_p = NULL; in OSSL_CMP_ATAV_push1()
597 if ((itav = OSSL_CMP_ITAV_new()) == NULL) in OSSL_CMP_ITAV_new0_crlStatusList()
598 return NULL; in OSSL_CMP_ITAV_new0_crlStatusList()
607 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_crlStatusList()
626 if (dpn == NULL && issuer == NULL) { in OSSL_CMP_CRLSTATUS_new1()
628 return NULL; in OSSL_CMP_CRLSTATUS_new1()
630 if (dpn != NULL && issuer != NULL) { in OSSL_CMP_CRLSTATUS_new1()
632 return NULL; in OSSL_CMP_CRLSTATUS_new1()
635 if ((crlstatus = OSSL_CMP_CRLSTATUS_new()) == NULL) in OSSL_CMP_CRLSTATUS_new1()
636 return NULL; in OSSL_CMP_CRLSTATUS_new1()
639 if (dpn != NULL) { in OSSL_CMP_CRLSTATUS_new1()
641 if ((crlsource->value.dpn = DIST_POINT_NAME_dup(dpn)) == NULL) in OSSL_CMP_CRLSTATUS_new1()
647 GENERAL_NAME_free)) == NULL) in OSSL_CMP_CRLSTATUS_new1()
651 if (thisUpdate != NULL in OSSL_CMP_CRLSTATUS_new1()
652 && (crlstatus->thisUpdate = ASN1_TIME_dup(thisUpdate)) == NULL) in OSSL_CMP_CRLSTATUS_new1()
658 return NULL; in OSSL_CMP_CRLSTATUS_new1()
664 GENERAL_NAME *name = NULL; in gennames_new()
666 if ((names = sk_GENERAL_NAME_new_reserve(NULL, 1)) == NULL) in gennames_new()
667 return NULL; in gennames_new()
670 return NULL; in gennames_new()
678 if (names == NULL) in gennames_allowed()
689 STACK_OF(DIST_POINT) *crldps = NULL; in OSSL_CMP_CRLSTATUS_create()
690 ISSUING_DIST_POINT *idp = NULL; in OSSL_CMP_CRLSTATUS_create()
691 DIST_POINT_NAME *dpn = NULL; in OSSL_CMP_CRLSTATUS_create()
692 AUTHORITY_KEYID *akid = NULL; in OSSL_CMP_CRLSTATUS_create()
693 GENERAL_NAMES *issuers = NULL; in OSSL_CMP_CRLSTATUS_create()
694 const GENERAL_NAMES *CRLissuer = NULL; in OSSL_CMP_CRLSTATUS_create()
695 const ASN1_TIME *last = crl == NULL ? NULL : X509_CRL_get0_lastUpdate(crl); in OSSL_CMP_CRLSTATUS_create()
696 OSSL_CMP_CRLSTATUS *status = NULL; in OSSL_CMP_CRLSTATUS_create()
704 if (cert != NULL) { in OSSL_CMP_CRLSTATUS_create()
705 crldps = X509_get_ext_d2i(cert, NID_crl_distribution_points, NULL, NULL); in OSSL_CMP_CRLSTATUS_create()
710 if (dp == NULL) in OSSL_CMP_CRLSTATUS_create()
712 if ((dpn = dp->distpoint) != NULL) { in OSSL_CMP_CRLSTATUS_create()
713 CRLissuer = NULL; in OSSL_CMP_CRLSTATUS_create()
716 if (gennames_allowed(dp->CRLissuer, only_DN) && CRLissuer == NULL) in OSSL_CMP_CRLSTATUS_create()
721 if (crl == NULL) { in OSSL_CMP_CRLSTATUS_create()
723 return NULL; in OSSL_CMP_CRLSTATUS_create()
726 NID_issuing_distribution_point, NULL, NULL); in OSSL_CMP_CRLSTATUS_create()
727 if (idp != NULL && idp->distpoint != NULL) in OSSL_CMP_CRLSTATUS_create()
731 if (dpn == NULL && CRLissuer == NULL) { in OSSL_CMP_CRLSTATUS_create()
732 if (cert != NULL) { in OSSL_CMP_CRLSTATUS_create()
733 akid = X509_get_ext_d2i(cert, NID_akid, NULL, NULL); in OSSL_CMP_CRLSTATUS_create()
734 if (akid != NULL && gennames_allowed(akid->issuer, only_DN)) in OSSL_CMP_CRLSTATUS_create()
739 if (CRLissuer == NULL && crl != NULL) { in OSSL_CMP_CRLSTATUS_create()
740 akid = X509_CRL_get_ext_d2i(crl, NID_akid, NULL, NULL); in OSSL_CMP_CRLSTATUS_create()
741 if (akid != NULL && gennames_allowed(akid->issuer, only_DN)) in OSSL_CMP_CRLSTATUS_create()
746 if (CRLissuer == NULL) in OSSL_CMP_CRLSTATUS_create()
765 if (crlstatus == NULL || dpn == NULL || issuer == NULL) { in OSSL_CMP_CRLSTATUS_get0()
769 if ((crlsource = crlstatus->source) == NULL) { in OSSL_CMP_CRLSTATUS_get0()
776 *issuer = NULL; in OSSL_CMP_CRLSTATUS_get0()
778 *dpn = NULL; in OSSL_CMP_CRLSTATUS_get0()
784 if (thisUpdate != NULL) in OSSL_CMP_CRLSTATUS_get0()
792 X509_CRL *crl_copy = NULL; in OSSL_CMP_ITAV_new_crls()
793 STACK_OF(X509_CRL) *crls = NULL; in OSSL_CMP_ITAV_new_crls()
795 if ((itav = OSSL_CMP_ITAV_new()) == NULL) in OSSL_CMP_ITAV_new_crls()
796 return NULL; in OSSL_CMP_ITAV_new_crls()
798 if (crl != NULL) { in OSSL_CMP_ITAV_new_crls()
799 if ((crls = sk_X509_CRL_new_reserve(NULL, 1)) == NULL in OSSL_CMP_ITAV_new_crls()
800 || (crl_copy = X509_CRL_dup(crl)) == NULL) in OSSL_CMP_ITAV_new_crls()
812 return NULL; in OSSL_CMP_ITAV_new_crls()
817 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_crls()