Lines Matching defs:msg

31                                           const OSSL_CMP_MSG *msg)
39 if (!ossl_assert(ctx != NULL && msg != NULL))
43 prot_part.header = msg->header;
44 prot_part.body = msg->body;
46 if (msg->header->protectionAlg == NULL) {
50 X509_ALGOR_get0(&algorOID, &pptype, &ppval, msg->header->protectionAlg);
133 int ossl_cmp_msg_add_extraCerts(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg)
135 if (!ossl_assert(ctx != NULL && msg != NULL))
161 if (!ossl_x509_add_certs_new(&msg->extraCerts, ctx->chain, prepend))
165 if (!ossl_x509_add_cert_new(&msg->extraCerts, ctx->cert, prepend))
172 if (!ossl_x509_add_certs_new(&msg->extraCerts, ctx->extraCertsOut,
177 if (sk_X509_num(msg->extraCerts) == 0) {
178 sk_X509_free(msg->extraCerts);
179 msg->extraCerts = NULL;
247 static int set_senderKID(const OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg,
252 return id == NULL || ossl_cmp_hdr_set1_senderKID(msg->header, id);
256 int ossl_cmp_msg_protect(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg)
258 if (!ossl_assert(ctx != NULL && msg != NULL))
264 X509_ALGOR_free(msg->header->protectionAlg);
265 msg->header->protectionAlg = NULL;
266 ASN1_BIT_STRING_free(msg->protection);
267 msg->protection = NULL;
270 if (!set_senderKID(ctx, msg, NULL))
274 if (!set_pbmac_algor(ctx, &msg->header->protectionAlg))
276 if (!set_senderKID(ctx, msg, NULL))
293 if (!set_sig_algor(ctx, &msg->header->protectionAlg))
296 if (!set_senderKID(ctx, msg, X509_get0_subject_key_id(ctx->cert)))
309 && ((msg->protection = ossl_cmp_calc_protection(ctx, msg)) == NULL))
318 if (!ossl_cmp_msg_add_extraCerts(ctx, msg))
326 if (!(ossl_cmp_general_name_is_NULL_DN(msg->header->sender)
327 && msg->header->senderKID == NULL))