CMS_verify_receipt(3) OpenSSL CMS_verify_receipt(3) NNAAMMEE CMS_verify_receipt - verify a CMS signed receipt SSYYNNOOPPSSIISS #include int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, STACK_OF(X509) *certs, X509_STORE *store, unsigned int flags); DDEESSCCRRIIPPTTIIOONN _C_M_S___v_e_r_i_f_y___r_e_c_e_i_p_t_(_) verifies a CMS signed receipt. rrccmmss is the signed receipt to verify. ooccmmss is the original SignedData structure containing the receipt request. cceerrttss is a set of certificates in which to search for the signing certificate. ssttoorree is a trusted certificate store (used for chain verification). ffllaaggss is an optional set of flags, which can be used to modify the ver- ify operation. NNOOTTEESS This functions behaves in a similar way to _C_M_S___v_e_r_i_f_y_(_) except the flag values CCMMSS__DDEETTAACCHHEEDD, CCMMSS__BBIINNAARRYY, CCMMSS__TTEEXXTT and CCMMSS__SSTTRREEAAMM are not sup- ported since they do not make sense in the context of signed receipts. RREETTUURRNN VVAALLUUEESS _C_M_S___v_e_r_i_f_y___r_e_c_e_i_p_t_(_) returns 1 for a successful verification and zero 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___s_i_g_n___r_e_c_e_i_p_t(3), _C_M_S___v_e_r_i_f_y(3), HHIISSTTOORRYY _C_M_S___v_e_r_i_f_y___r_e_c_e_i_p_t_(_) was added to OpenSSL 0.9.8 1.0.2u 2019-12-20 CMS_verify_receipt(3)