<div dir="ltr">Hi, <div>no one have some hints?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 8 apr 2021 alle ore 10:53 Fabio <<a href="mailto:fabpet@gmail.com">fabpet@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div>I have a problem upgrading my code from openssl 1.0 to the last 1.1.1j. </div><div>Using an older version, I exported the CMS code in order to extend and modify some calculations. I used i2d_CMS_bio_stream to convert the struct to DER.</div><div><br></div><div>Using OpenSSL 1.1.1j  i had to change all the DECLARE_STACK_OF in DEFINE_STACK_OF but now, i2d_CMS_bio_stream produces a broken DER. In particular when in the code i add a stack to the structure and push some struct into the stack,  i2d_CMS_bio_stream does not write correctly the SEQUENCE (instead i get some<span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"> 0x06 0x82 0x30 0x82)...</span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">What should i do to fix this?</span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Thanks.</span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">FP</span></div></div>
</blockquote></div>