<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.xspelle
        {mso-style-name:x_spelle;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Sergio,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We are using OpenSSL APIs in our product code. We are not making any changes in OpenSSL. Our product code is a C++ code and it makes use of openSSL APIs for some functionality.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This compilation error we are getting in Linux and windows platforms. But in Linux, we have a ‘-fpermissive’ flag which is suppressing those errors as warnings and so compilation is getting successful.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The issue here is in Windows , we are not able to find alternative flag for –‘fpermissive’ in Visual studio and due to that compilation is unsuccessful. It would be helpful if anyone suggests some option to get the compilation successful.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks and regards,<o:p></o:p></p>
<p class="MsoNormal">Nagalakshmi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Sergio NNX <sfhacker@hotmail.com> <br>
<b>Sent:</b> Monday, September 30, 2019 9:06 PM<br>
<b>To:</b> Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>; Nagalakshmi V J <nagalakshmi.j@altran.com>; Michael Mueller <abaci.mjm@gmail.com><br>
<b>Cc:</b> openssl-users@openssl.org; Umamaheswari Nagarajan <umamaheswari.nagarajan@altran.com><br>
<b>Subject:</b> Re: OpenSSL compilation errors in Windows<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:#FDFEFE"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">** This mail has been sent from an external source **
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Ciao.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">I haven't had a chance to compile the exact OpenSSL version using g++ compiler as stated by the user/poster.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">If this user is using a modified or altered version of OpenSSL provided source code, is there support available? Don't get me wrong, I don't mind helping out but .....<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">I'll try to compile OpenSSL source code this evening and I'll post my findings here.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Regards.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Sergio.<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> openssl-users <<a href="mailto:openssl-users-bounces@openssl.org">openssl-users-bounces@openssl.org</a>> on behalf of Dr. Matthias St. Pierre <<a href="mailto:Matthias.St.Pierre@ncp-e.com">Matthias.St.Pierre@ncp-e.com</a>><br>
<b>Sent:</b> Tuesday, 1 October 2019 12:28 AM<br>
<b>To:</b> Nagalakshmi V J <<a href="mailto:nagalakshmi.j@altran.com">nagalakshmi.j@altran.com</a>>; Michael Mueller <<a href="mailto:abaci.mjm@gmail.com">abaci.mjm@gmail.com</a>><br>
<b>Cc:</b> <a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a> <<a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a>>; Umamaheswari Nagarajan <<a href="mailto:umamaheswari.nagarajan@altran.com">umamaheswari.nagarajan@altran.com</a>><br>
<b>Subject:</b> AW: OpenSSL compilation errors in Windows</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal">> OpenSSL code is compiling without any issues. When it is used from our product code and while compiling using C++ compiler, the issue is seen.<span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal"> <span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal">As I wrote previously, the error you posted was caused  by the fact that you are compiling
<span class="xspelle">Ansi</span> C (<span class="xspelle">a.k.a</span> <span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#222222;background:white">
ISO/IEC 9899:1990, <span class="xspelle">a.k.a</span> </span>C90) source code<span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal">using a C++ compiler. While C permits a cast from ‘void *’ to ‘<span class="xspelle">anytype</span> *’, C++ doesn’t allow it without an explicit cast.<span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal"> <span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal">Only the *<b>public</b>* OpenSSL headers are guaranteed to be includable by a C++ compiler (they contain the necessary ` extern “C” ` blocks, etc.),<span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal">not the internal headers. Including *<b>internal</b>* headers is neither supported nor possible with a C++ compiler. And as Matt Caswell already told you,<span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal">there are no compatibility guarantees for those headers.<span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal"> <span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal">Matthias<span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal"> <span lang="DE"><o:p></o:p></span></p>
<p class="xmsonormal"> <span lang="DE"><o:p></o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<p class="xmsonormal"> <span lang="DE"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
=====================================================<br>
<font face="Arial" color="Black" size="2">Please refer to https://northamerica.altran.com/email-disclaimer<br>
for important disclosures regarding this electronic communication.<br>
</font>=====================================================<br>
</body>
</html>