<div dir="ltr">Thanks Matt for quick reply.<div>If there is not way to get the sizeof(XYZ), then yes application code will be changed.</div><div><br></div><div>Actually since application is quite old and base is large, I am sure, will get more such instance. </div><div>Hence before proceeding, wanted to confirm that there is no way with new openssl to get size and no api is provided to achieve same.</div><div> <br></div><div><br></div><div>Regards,</div><div>Mukesh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 November 2016 at 20:03, Matt Caswell <span dir="ltr"><<a href="mailto:matt@openssl.org" target="_blank">matt@openssl.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 18/11/16 14:30, Mukesh Yadav wrote:<br>
> HI,<br>
><br>
><br>
> I am updating a solution from openssl-1.0.2 to openssl-1.1.0.<br>
><br>
> Here I see most of earlier definations of struct<br>
> like EVP_PKEY_CTX/HMAC_CTX are made local within Openssl.<br>
><br>
> To access, thier internal struct member, new API's are introduced.<br>
><br>
><br>
> Ex. const EVP_CIPHER *test = EVP_des_cbc();<br>
>        int a = test->ctx_size;<br>
><br>
> This old code doesnt work with new Openssl-1.1.0.<br>
>      To get this working, code need to be changed to<br>
>       int a = EVP_CIPHER_impl_ctx_size(EVP_<wbr>des_cbc());<br>
><br>
>       Similarly facing issue while using sizeof(HMAC_CTX).<br>
>       After browing/grep inside openssl-1.1.0, didnt saw any replacement<br>
> for using code like sizeof(HMAC_CTX) outside library from application..<br>
><br>
> Error:<br>
> a.c:24: error: invalid application of 'sizeof' to incomplete type 'HMAC_CTX'<br>
><br>
> Any pointer for resolving this, will be helpful.<br>
> Thanks in advance..<br>
<br>
</span>Why do you need to know this size? Can your code be rewritten to not<br>
need it?<br>
<span class="HOEnZb"><font color="#888888"><br>
Matt<br>
<br>
--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><br>
</font></span></blockquote></div><br></div>