Lines Matching refs:NULL

36     ASN1_BIT_STRING *prot = NULL;  in ossl_cmp_calc_protection()
38 const ASN1_OBJECT *algorOID = NULL; in ossl_cmp_calc_protection()
39 const void *ppval = NULL; in ossl_cmp_calc_protection()
42 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_calc_protection()
43 return NULL; in ossl_cmp_calc_protection()
49 if (msg->header->protectionAlg == NULL) { in ossl_cmp_calc_protection()
51 return NULL; in ossl_cmp_calc_protection()
58 unsigned char *prot_part_der = NULL; in ossl_cmp_calc_protection()
60 unsigned char *protection = NULL; in ossl_cmp_calc_protection()
61 OSSL_CRMF_PBMPARAMETER *pbm = NULL; in ossl_cmp_calc_protection()
62 ASN1_STRING *pbm_str = NULL; in ossl_cmp_calc_protection()
63 const unsigned char *pbm_str_uc = NULL; in ossl_cmp_calc_protection()
65 if (ctx->secretValue == NULL) { in ossl_cmp_calc_protection()
67 return NULL; in ossl_cmp_calc_protection()
69 if (ppval == NULL) { in ossl_cmp_calc_protection()
71 return NULL; in ossl_cmp_calc_protection()
75 if (len < 0 || prot_part_der == NULL) { in ossl_cmp_calc_protection()
83 pbm = d2i_OSSL_CRMF_PBMPARAMETER(NULL, &pbm_str_uc, pbm_str->length); in ossl_cmp_calc_protection()
84 if (pbm == NULL) { in ossl_cmp_calc_protection()
95 if ((prot = ASN1_BIT_STRING_new()) == NULL) in ossl_cmp_calc_protection()
101 prot = NULL; in ossl_cmp_calc_protection()
112 if (ctx->pkey == NULL) { in ossl_cmp_calc_protection()
115 return NULL; in ossl_cmp_calc_protection()
119 md = NULL; in ossl_cmp_calc_protection()
121 if ((prot = ASN1_BIT_STRING_new()) == NULL) in ossl_cmp_calc_protection()
122 return NULL; in ossl_cmp_calc_protection()
125 NULL, prot, &prot_part, NULL, ctx->pkey, md, in ossl_cmp_calc_protection()
129 return NULL; in ossl_cmp_calc_protection()
136 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_msg_add_extraCerts()
140 if (!ctx->unprotectedSend && ctx->secretValue == NULL in ossl_cmp_msg_add_extraCerts()
141 && ctx->cert != NULL && ctx->pkey != NULL) { in ossl_cmp_msg_add_extraCerts()
146 if (ctx->chain == NULL) { in ossl_cmp_msg_add_extraCerts()
149 ctx->chain = X509_build_chain(ctx->cert, ctx->untrusted, NULL, 0, in ossl_cmp_msg_add_extraCerts()
151 if (ctx->chain != NULL) { in ossl_cmp_msg_add_extraCerts()
161 if (ctx->chain != NULL) { in ossl_cmp_msg_add_extraCerts()
180 msg->extraCerts = NULL; in ossl_cmp_msg_add_extraCerts()
191 OSSL_CRMF_PBMPARAMETER *pbm = NULL; in pbmac_algor()
192 unsigned char *pbm_der = NULL; in pbmac_algor()
194 ASN1_STRING *pbm_str = NULL; in pbmac_algor()
195 X509_ALGOR *alg = NULL; in pbmac_algor()
197 if (!ossl_assert(ctx != NULL)) in pbmac_algor()
198 return NULL; in pbmac_algor()
204 if (pbm == NULL || pbm_str == NULL) in pbmac_algor()
213 if (alg == NULL) in pbmac_algor()
223 if (id == NULL) in set_senderKID()
225 return id == NULL || ossl_cmp_hdr_set1_senderKID(msg->header, id); in set_senderKID()
231 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_msg_protect()
239 msg->header->protectionAlg = NULL; in ossl_cmp_msg_protect()
241 msg->protection = NULL; in ossl_cmp_msg_protect()
244 if (!set_senderKID(ctx, msg, NULL)) in ossl_cmp_msg_protect()
246 } else if (ctx->secretValue != NULL) { in ossl_cmp_msg_protect()
248 if ((msg->header->protectionAlg = pbmac_algor(ctx)) == NULL) in ossl_cmp_msg_protect()
250 if (!set_senderKID(ctx, msg, NULL)) in ossl_cmp_msg_protect()
258 } else if (ctx->cert != NULL && ctx->pkey != NULL) { in ossl_cmp_msg_protect()
267 if ((msg->header->protectionAlg = X509_ALGOR_new()) == NULL) in ossl_cmp_msg_protect()
284 && ((msg->protection = ossl_cmp_calc_protection(ctx, msg)) == NULL)) in ossl_cmp_msg_protect()
302 && msg->header->senderKID == NULL)) in ossl_cmp_msg_protect()