CMS_sign_receipt(3) OpenSSL CMS_sign_receipt(3) NNAAMMEE CMS_sign_receipt - create a CMS signed receipt SSYYNNOOPPSSIISS #include CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, unsigned int flags); DDEESSCCRRIIPPTTIIOONN _C_M_S___s_i_g_n___r_e_c_e_i_p_t_(_) creates and returns a CMS signed receipt structure. ssii is the CCMMSS__SSiiggnneerrIInnffoo structure containing the signed receipt request. ssiiggnncceerrtt is the certificate to sign with, ppkkeeyy is the corre- sponding private key. cceerrttss is an optional additional set of certifi- cates to include in the CMS structure (for example any intermediate CAs in the chain). ffllaaggss is an optional set of flags. NNOOTTEESS This functions behaves in a similar way to _C_M_S___s_i_g_n_(_) except the flag values CCMMSS__DDEETTAACCHHEEDD, CCMMSS__BBIINNAARRYY, CCMMSS__NNOOAATTTTRR, CCMMSS__TTEEXXTT and CCMMSS__SSTTRREEAAMM are not supported since they do not make sense in the context of signed receipts. RREETTUURRNN VVAALLUUEESS _C_M_S___s_i_g_n___r_e_c_e_i_p_t_(_) returns either a valid CMS_ContentInfo structure or NULL if an error occurred. The error can be obtained from _E_R_R___g_e_t___e_r_r_o_r(3). SSEEEE AALLSSOO _E_R_R___g_e_t___e_r_r_o_r(3), _C_M_S___v_e_r_i_f_y___r_e_c_e_i_p_t(3), _C_M_S___s_i_g_n(3) HHIISSTTOORRYY _C_M_S___s_i_g_n___r_e_c_e_i_p_t_(_) was added to OpenSSL 0.9.8 1.0.1u 2016-09-22 CMS_sign_receipt(3)