Lines Matching refs:NULL

31     const CMS_CTX *ctx = ossl_cms_get0_cmsctx(a == NULL ? NULL : *a);  in IMPLEMENT_ASN1_PRINT_FUNCTION()
37 if (ci != NULL) { in IMPLEMENT_ASN1_PRINT_FUNCTION()
56 if (ci != NULL) { in CMS_ContentInfo_new_ex()
58 ci->ctx.propq = NULL; in CMS_ContentInfo_new_ex()
59 if (propq != NULL) { in CMS_ContentInfo_new_ex()
61 if (ci->ctx.propq == NULL) { in CMS_ContentInfo_new_ex()
63 ci = NULL; in CMS_ContentInfo_new_ex()
72 return cms != NULL ? &cms->ctx : NULL; in ossl_cms_get0_cmsctx()
77 return ctx != NULL ? ctx->libctx : NULL; in ossl_cms_ctx_get0_libctx()
82 return ctx != NULL ? ctx->propq : NULL; in ossl_cms_ctx_get0_propq()
98 if (pcerts != NULL) { in ossl_cms_resolve_libctx()
116 if (cms != NULL) { in ossl_cms_Data_create()
128 if (pos == NULL) in ossl_cms_content_bio()
129 return NULL; in ossl_cms_content_bio()
131 if (*pos == NULL) in ossl_cms_content_bio()
136 if (*pos == NULL || ((*pos)->flags == ASN1_STRING_FLAG_CONT)) in ossl_cms_content_bio()
151 return NULL; in CMS_dataInit()
193 return NULL; in CMS_dataInit()
200 return ossl_cms_DataFinal(cms, cmsbio, NULL, 0); in CMS_dataFinal()
209 if (pos == NULL) in ossl_cms_DataFinal()
293 return NULL; in CMS_get0_content()
330 return NULL; in cms_get0_econtent_type()
341 return NULL; in CMS_get0_eContentType()
349 if (petype == NULL) in CMS_set1_eContentType()
351 if (oid == NULL) in CMS_set1_eContentType()
354 if (etype == NULL) in CMS_set1_eContentType()
366 if (pos == NULL) in CMS_is_detached()
368 if (*pos != NULL) in CMS_is_detached()
378 if (pos == NULL) in CMS_set_detached()
382 *pos = NULL; in CMS_set_detached()
385 if (*pos == NULL) in CMS_set_detached()
387 if (*pos != NULL) { in CMS_set_detached()
403 BIO *mdbio = NULL; in ossl_cms_DigestAlgorithm_init_bio()
405 const EVP_MD *digest = NULL; in ossl_cms_DigestAlgorithm_init_bio()
406 EVP_MD *fetched_digest = NULL; in ossl_cms_DigestAlgorithm_init_bio()
409 X509_ALGOR_get0(&digestoid, NULL, NULL, digestAlgorithm); in ossl_cms_DigestAlgorithm_init_bio()
416 if (fetched_digest != NULL) in ossl_cms_DigestAlgorithm_init_bio()
420 if (digest == NULL) { in ossl_cms_DigestAlgorithm_init_bio()
428 if (mdbio == NULL || BIO_set_md(mdbio, digest) <= 0) { in ossl_cms_DigestAlgorithm_init_bio()
437 return NULL; in ossl_cms_DigestAlgorithm_init_bio()
447 X509_ALGOR_get0(&mdoid, NULL, NULL, mdalg); in ossl_cms_DigestAlgorithm_find_ctx()
453 if (chain == NULL) { in ossl_cms_DigestAlgorithm_find_ctx()
478 if (cms->d.envelopedData->originatorInfo == NULL) in STACK_OF()
479 return NULL; in STACK_OF()
483 if (cms->d.authEnvelopedData->originatorInfo == NULL) in STACK_OF()
484 return NULL; in STACK_OF()
489 return NULL; in STACK_OF()
500 if (pcerts == NULL) in CMS_add0_CertificateChoices()
501 return NULL; in CMS_add0_CertificateChoices()
502 if (*pcerts == NULL) in CMS_add0_CertificateChoices()
504 if (*pcerts == NULL) in CMS_add0_CertificateChoices()
505 return NULL; in CMS_add0_CertificateChoices()
508 return NULL; in CMS_add0_CertificateChoices()
511 return NULL; in CMS_add0_CertificateChoices()
523 if (pcerts == NULL) in CMS_add0_cert()
561 if (cms->d.envelopedData->originatorInfo == NULL) in STACK_OF()
562 return NULL; in STACK_OF()
566 if (cms->d.authEnvelopedData->originatorInfo == NULL) in STACK_OF()
567 return NULL; in STACK_OF()
572 return NULL; in STACK_OF()
583 if (pcrls == NULL) in CMS_add0_RevocationInfoChoice()
584 return NULL; in CMS_add0_RevocationInfoChoice()
585 if (*pcrls == NULL) in CMS_add0_RevocationInfoChoice()
587 if (*pcrls == NULL) in CMS_add0_RevocationInfoChoice()
588 return NULL; in CMS_add0_RevocationInfoChoice()
590 if (rch == NULL) in CMS_add0_RevocationInfoChoice()
591 return NULL; in CMS_add0_RevocationInfoChoice()
594 return NULL; in CMS_add0_RevocationInfoChoice()
603 if (rch == NULL) in CMS_add0_crl()
622 STACK_OF(X509) *certs = NULL; in STACK_OF()
628 if (pcerts == NULL) in STACK_OF()
629 return NULL; in STACK_OF()
633 if ((certs = sk_X509_new_reserve(NULL, n)) == NULL) in STACK_OF()
634 return NULL; in STACK_OF()
642 return NULL; in STACK_OF()
651 STACK_OF(X509_CRL) *crls = NULL; in STACK_OF()
657 if (pcrls == NULL) in STACK_OF()
658 return NULL; in STACK_OF()
662 if ((crls = sk_X509_CRL_new_reserve(NULL, n)) == NULL) in STACK_OF()
663 return NULL; in STACK_OF()
671 return NULL; in STACK_OF()
691 if (cert_keyid == NULL) in ossl_cms_keyid_cert_cmp()
722 ASN1_OCTET_STRING *keyid = NULL; in ossl_cms_set1_keyid()
725 if (cert_keyid == NULL) { in ossl_cms_set1_keyid()