CMS_final(3) OpenSSL CMS_final(3) NNAAMMEE CMS_final - finalise a CMS_ContentInfo structure SSYYNNOOPPSSIISS #include int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags); DDEESSCCRRIIPPTTIIOONN _C_M_S___f_i_n_a_l_(_) finalises the structure ccmmss. It's purpose is to perform any operations necessary on ccmmss (digest computation for example) and set the appropriate fields. The parameter ddaattaa contains the content to be processed. The ddccoonntt parameter contains a BIO to write content to after processing: this is only used with detached data and will usually be set to NULL. NNOOTTEESS This function will normally be called when the CCMMSS__PPAARRTTIIAALL flag is used. It should only be used when streaming is not performed because the streaming I/O functions perform finalisation operations internally. RREETTUURRNN VVAALLUUEESS _C_M_S___f_i_n_a_l_(_) returns 1 for success or 0 for failure. 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___e_n_c_r_y_p_t(3) HHIISSTTOORRYY _C_M_S___f_i_n_a_l_(_) was added to OpenSSL 0.9.8 1.0.1u 2016-09-22 CMS_final(3)