<div dir="ltr"><div>Most (all?) of the OpenSSL data structures are opaque now and require accessor functions to get/set the member fields. In your case, see the man page for ECDSA_SIG_set0():</div><div><br></div><div>       The r and s values can be set by calling ECDSA_SIG_set0() and passing<br>       the new values for r and s as parameters to the function. Calling this<br>       function transfers the memory management of the values to the ECDSA_SIG<br>       object, and therefore the values that have been passed in should not be<br>       freed directly after this function has been called.</div><div><br></div><div><br></div><div>Regards,</div><div>Tom.III</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 23, 2022 at 2:31 AM Fernando Elena Benavente <<a href="mailto:fernando.elena.benavente@gmv.com">fernando.elena.benavente@gmv.com</a>> wrote:<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 class="msg7956009280835624404">





<div style="overflow-wrap: break-word;" lang="EN-US">
<div class="m_7956009280835624404WordSection1">
<p class="MsoNormal">Good morning everyone,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have problems with the OpenSSL ECDSA ,specifically with the EDSA_SIG struct. When I initialize the struct and I access to its params (r and s) I get the following error: “error: invalid use of incomplete typedef ‘ECDSA_SIG’ {aka ‘struct
 ECDSA_SIG_st’}”. I am using the latest version of OpenSSL (3.0.7)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><a href="https://gyazo.com/375f2fe6a04352f2ee3f3ab4915e27c9" target="_blank">https://gyazo.com/375f2fe6a04352f2ee3f3ab4915e27c9</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><a href="https://gyazo.com/b0817f5e81f86b0b6dcbd405c6cde18b" target="_blank">https://gyazo.com/b0817f5e81f86b0b6dcbd405c6cde18b</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">any tips of why it could happen?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks a lot, Fernando.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

</div></blockquote></div>