CMS_get1_ReceiptRequest(3) OpenSSL CMS_get1_ReceiptRequest(3) NNAAMMEE CMS_ReceiptRequest_create0, CMS_add1_ReceiptRequest, CMS_get1_ReceiptRequest, CMS_ReceiptRequest_get0_values - CMS signed receipt request functions. SSYYNNOOPPSSIISS #include CMS_ReceiptRequest *CMS_ReceiptRequest_create0(unsigned char *id, int idlen, int allorfirst, STACK_OF(GENERAL_NAMES) *receiptList, STACK_OF(GENERAL_NAMES) *receiptsTo); int CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr); int CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr); void CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr, ASN1_STRING **pcid, int *pallorfirst, STACK_OF(GENERAL_NAMES) **plist, STACK_OF(GENERAL_NAMES) **prto); DDEESSCCRRIIPPTTIIOONN _C_M_S___R_e_c_e_i_p_t_R_e_q_u_e_s_t___c_r_e_a_t_e_0_(_) creates a signed receipt request struc- ture. The ssiiggnneeddCCoonntteennttIIddeennttiiffiieerr field is set using iidd and iiddlleenn, or it is set to 32 bytes of pseudo random data if iidd is NULL. If rreecceeiippttLLiisstt is NULL the allOrFirstTier option in rreecceeiippttssFFrroomm is used and set to the value of the aalllloorrffiirrsstt parameter. If rreecceeiippttLLiisstt is not NULL the rreecceeiippttLLiisstt option in rreecceeiippttssFFrroomm is used. The rreecceeiippttssTToo parameter specifies the rreecceeiippttssTToo field value. The _C_M_S___a_d_d_1___R_e_c_e_i_p_t_R_e_q_u_e_s_t_(_) function adds a signed receipt request rrrr to SignerInfo structure ssii. int _C_M_S___g_e_t_1___R_e_c_e_i_p_t_R_e_q_u_e_s_t_(_) looks for a signed receipt request in ssii, if any is found it is decoded and written to pprrrr. _C_M_S___R_e_c_e_i_p_t_R_e_q_u_e_s_t___g_e_t_0___v_a_l_u_e_s_(_) retrieves the values of a receipt request. The signedContentIdentifier is copied to ppcciidd. If the aallllOOrr-- FFiirrssttTTiieerr option of rreecceeiippttssFFrroomm is used its value is copied to ppaalllloorr-- ffiirrsstt otherwise the rreecceeiippttLLiisstt field is copied to pplliisstt. The rreecceeiipptt-- ssTToo parameter is copied to pprrttoo. NNOOTTEESS For more details of the meaning of the fields see RFC2634. The contents of a signed receipt should only be considered meaningful if the corresponding CMS_ContentInfo structure can be successfully ver- ified using _C_M_S___v_e_r_i_f_y_(_). RREETTUURRNN VVAALLUUEESS _C_M_S___R_e_c_e_i_p_t_R_e_q_u_e_s_t___c_r_e_a_t_e_0_(_) returns a signed receipt request structure or NULL if an error occurred. _C_M_S___a_d_d_1___R_e_c_e_i_p_t_R_e_q_u_e_s_t_(_) returns 1 for success or 0 if an error occurred. _C_M_S___g_e_t_1___R_e_c_e_i_p_t_R_e_q_u_e_s_t_(_) returns 1 is a signed receipt request is found and decoded. It returns 0 if a signed receipt request is not present and -1 if it is present but malformed. SSEEEE AALLSSOO _E_R_R___g_e_t___e_r_r_o_r(3), _C_M_S___s_i_g_n(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) _C_M_S___v_e_r_i_f_y___r_e_c_e_i_p_t(3) HHIISSTTOORRYY _C_M_S___R_e_c_e_i_p_t_R_e_q_u_e_s_t___c_r_e_a_t_e_0_(_), _C_M_S___a_d_d_1___R_e_c_e_i_p_t_R_e_q_u_e_s_t_(_), _C_M_S___g_e_t_1___R_e_c_e_i_p_t_R_e_q_u_e_s_t_(_) and _C_M_S___R_e_c_e_i_p_t_R_e_q_u_e_s_t___g_e_t_0___v_a_l_u_e_s_(_) were added to OpenSSL 0.9.8 1.0.2u 2019-12-20 CMS_get1_ReceiptRequest(3)