=pod =head1 NAME ossl_cmp_bodytype_to_string, ossl_cmp_msg_get_bodytype, ossl_cmp_msg_set_bodytype, ossl_cmp_msg_create, ossl_cmp_msg_gen_ITAV_push0, ossl_cmp_msg_gen_ITAVs_push1 - functions manipulating CMP messages =head1 SYNOPSIS #include "cmp_local.h" const char *ossl_cmp_bodytype_to_string(int type); int ossl_cmp_msg_get_bodytype(const OSSL_CMP_MSG *msg); int ossl_cmp_msg_set_bodytype( OSSL_CMP_MSG *msg, int type); OSSL_CMP_MSG *ossl_cmp_msg_create(OSSL_CMP_CTX *ctx, int bodytype); int ossl_cmp_msg_gen_ITAV_push0(OSSL_CMP_MSG *msg, OSSL_CMP_ITAV *itav); int ossl_cmp_msg_gen_ITAVs_push1(OSSL_CMP_MSG *msg, STACK_OF(OSSL_CMP_ITAV) *itavs); =head1 DESCRIPTION ossl_cmp_bodytype_to_string() returns the name of the given body type as string, or "illegal body type" on error. ossl_cmp_msg_get_bodytype() returns the body type of the given PKIMessage, or -1 on error. ossl_cmp_msg_set_bodytype() sets the type of the message contained in the PKIMessage body field. Returns 1 on success, 0 on error. ossl_cmp_msg_create() creates and initializes a OSSL_CMP_MSG structure, using B for the header and B for the body. Returns pointer to created OSSL_CMP_MSG on success, NULL on error. ossl_cmp_msg_gen_ITAV_push0() pushes the B to the body of the PKIMessage B of GenMsg or GenRep type. Consumes the B pointer. Returns 1 on success, 0 on error. ossl_cmp_msg_gen_ITAVs_push1() adds a copy of the B stack to the body of the PKIMessage B of GenMsg or GenRep type. Does not consume the B pointer nor its elements. Returns 1 on success, 0 on error. =head1 NOTES CMP is defined in RFC 4210 (and CRMF in RFC 4211). =head1 RETURN VALUES See the individual functions above. =head1 SEE ALSO L, L =head1 HISTORY The OpenSSL CMP support was added in OpenSSL 3.0. =head1 COPYRIGHT Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at L. =cut