<div dir="ltr"><div><br></div><div>While upgrading to openssl 1.1.1 from 1.0.2k .</div>I came across this code snippet :<div>    if (rsa->flags & RSA_FLAG_SIGN_VER)<br>        return rsa->meth->rsa_sign (type, m, lLen, sigret, siglen, rsa);</div><div><br></div><div>From Docs :</div><div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign  and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions will be called when RSA_sign() and RSA_verify() are used.</div></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">    /*  <br>     * New sign and verify functions: some libraries don't allow arbitrary<br>     * data to be signed/verified: this allows them to be used. Note: for<br>     * this to work the RSA_public_decrypt() and RSA_private_encrypt() should * *NOT* be used RSA_sign(), RSA_verify() should be used instead.<br>     */<br></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><br></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"> In Latest Openssl 1.1.1 :  <br></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><div>-- RSA_FLAG_SIGN_VER is not required . To get flags : RSA_flags(rsa). </div><div></div></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">-- "struct rsa_meth_st" has  "rsa_sign" declared as a function pointer .  I cannot find any actual function definition that the above "meth->rsa_sign

" might point to , which can be called as this forward declaration is not allowed anymore . Maybe "RSA_sign()" ??   </div><div><br></div><div>Moreover , "RSA_sign()" function has the same return code snippet above. .</div><div> </div><div>So, what is a suitable replacement for the above snippet in openssl 1.1.1g ??</div><div><br></div><div>Can Someone help me on this !!, TIA .</div><div><br></div><div>Regards,</div><div>Prud.</div><div><br></div><div><br></div><div><br></div><div><br></div></div>