CMS_uncompress(3) OpenSSL CMS_uncompress(3) NNAAMMEE CMS_uncompress - uncompress a CMS CompressedData structure SSYYNNOOPPSSIISS #include int CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags); DDEESSCCRRIIPPTTIIOONN _C_M_S___u_n_c_o_m_p_r_e_s_s_(_) extracts and uncompresses the content from a CMS Com- pressedData structure ccmmss. ddaattaa is a BIO to write the content to and ffllaaggss is an optional set of flags. The ddccoonntt parameter is used in the rare case where the compressed con- tent is detached. It will normally be set to NULL. NNOOTTEESS The only currently supported compression algorithm is zlib: if the structure indicates the use of any other algorithm an error is returned. If zlib support is not compiled into OpenSSL then _C_M_S___u_n_c_o_m_p_r_e_s_s_(_) will always return an error. The following flags can be passed in the ffllaaggss parameter. If the CCMMSS__TTEEXXTT flag is set MIME headers for type tteexxtt//ppllaaiinn are deleted from the content. If the content is not of type tteexxtt//ppllaaiinn then an error is returned. RREETTUURRNN VVAALLUUEESS _C_M_S___u_n_c_o_m_p_r_e_s_s_(_) returns either 1 for success or 0 for failure. The error can be obtained from _E_R_R___g_e_t___e_r_r_o_r(3) BBUUGGSS The lack of single pass processing and the need to hold all data in memory as mentioned in _C_M_S___v_e_r_i_f_y_(_) also applies to _C_M_S___d_e_c_o_m_p_r_e_s_s_(_). SSEEEE AALLSSOO _E_R_R___g_e_t___e_r_r_o_r(3), _C_M_S___c_o_m_p_r_e_s_s(3) HHIISSTTOORRYY _C_M_S___u_n_c_o_m_p_r_e_s_s_(_) was added to OpenSSL 0.9.8 1.0.2u 2019-12-20 CMS_uncompress(3)