<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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="MsoPlainText">Hi Matthias,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Yes that's right. The error message is<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><span style="color:red">..\..\OpenSSL\openssl-1.1.1c\crypto\../ssl/packet_locl.h(429) : error C2440: '=' : cannot convert from 'void *' to 'unsigned char *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:red"><o:p> </o:p></span></p>
<p class="MsoPlainText">Sorry, it was missed by mistake. So how can we avoid this?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">In our code, We included “ssl_locl.h” which in turn includes packet_locl.h. Any way to avoid this kind of error?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thanks and regards,<o:p></o:p></p>
<p class="MsoPlainText">Nagalakshmi<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> <br>
Sent: Monday, September 30, 2019 2:10 PM<br>
To: Nagalakshmi V J <nagalakshmi.j@altran.com>; openssl-users@openssl.org<br>
Cc: Umamaheswari Nagarajan <umamaheswari.nagarajan@altran.com><br>
Subject: AW: OpenSSL compilation errors in Windows</p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">** This mail has been sent from an external source **<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> Getting the errors like below. ssl/packet_locl.h(429) : error C2440:
<o:p></o:p></p>
<p class="MsoPlainText">> '=' : cannot convert from 'void *' to 'unsigned char 'Conversion from
<o:p></o:p></p>
<p class="MsoPlainText">> 'void' to pointer to non-'void' requires an explicit cast<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Is it possible that your error message was copied incorrectly? Line 429 is an assignment from 'void *' to 'unsigned char*', not to 'unsigned char'.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Such an assignment is allowed in C (and the type is implicitly converted), but not in C++. Is it possible, that you are including this header in a module compiled with a C++ compiler? Note that this is an internal header file and not
 meant to be included by third party software.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">HTH,<o:p></o:p></p>
<p class="MsoPlainText">Matthias<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Dr. Matthias St. Pierre<o:p></o:p></p>
<p class="MsoPlainText">Senior Software Engineer<o:p></o:p></p>
<p class="MsoPlainText"><a href="mailto:matthias.st.pierre@ncp-e.com"><span style="color:windowtext;text-decoration:none">matthias.st.pierre@ncp-e.com</span></a><o:p></o:p></p>
<p class="MsoPlainText">Phone: +49 911 9968-0<o:p></o:p></p>
<p class="MsoPlainText"><a href="http://www.ncp-e.com"><span style="color:windowtext;text-decoration:none">www.ncp-e.com</span></a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Headquarters Germany: NCP engineering GmbH • Dombuehler Str. 2 • 90449 • Nuremberg North American HQ: NCP engineering Inc. • 678 Georgia Ave. • Sunnyvale, CA 94085 East Coast Office: NCP engineering Inc. • 601 Cleveland Str., Suite 501-25
 • Clearwater, FL 33755<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Authorized representatives: Peter Soell, Patrick Oliver Graf, Beate Dietrich Registry Court: Lower District Court of Nuremberg Commercial register No.: HRB 7786 Nuremberg, VAT identification No.: DE 133557619<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">This e-mail message including any attachments is for the sole use of the intended recipient(s) and may contain privileged or confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are
 not the intended recipient, please immediately contact the sender by reply e-mail and delete the original message and destroy all copies thereof.<o:p></o:p></p>
<p class="MsoPlainText">Von: openssl-users <<a href="mailto:openssl-users-bounces@openssl.org"><span style="color:windowtext;text-decoration:none">openssl-users-bounces@openssl.org</span></a>> Im Auftrag von Nagalakshmi V J<o:p></o:p></p>
<p class="MsoPlainText">Gesendet: Montag, 30. September 2019 08:44<o:p></o:p></p>
<p class="MsoPlainText">An: <a href="mailto:openssl-users@openssl.org"><span style="color:windowtext;text-decoration:none">openssl-users@openssl.org</span></a><o:p></o:p></p>
<p class="MsoPlainText">Cc: Umamaheswari Nagarajan <<a href="mailto:umamaheswari.nagarajan@altran.com"><span style="color:windowtext;text-decoration:none">umamaheswari.nagarajan@altran.com</span></a>><o:p></o:p></p>
<p class="MsoPlainText">Betreff: OpenSSL compilation errors in Windows<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi,<o:p></o:p></p>
<p class="MsoPlainText">I am using openssl 1.1.c from our product code. While compiling the code, I am getting the errors which can be suppressed as warnings using -fpermissive flag in Linux (gcc/g++). In windows, I am getting the same compilation errors in
 visual studio (2005). Would like to know the alternative of -fpermissive flag that can be used in visual studio to suppress the errors.<o:p></o:p></p>
<p class="MsoPlainText">I tried adding the flags such as '/fpermissive' , '/Ze' in module properties->C/C++->command Line->Additional options. But it did not resolve the problem.<o:p></o:p></p>
<p class="MsoPlainText">Getting the errors like below. ssl/packet_locl.h(429) : error C2440: '=' : cannot convert from 'void *' to 'unsigned char 'Conversion from 'void' to pointer to non-'void' requires an explicit cast<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Since it is giving error in Openssl code, we cannot make any code changes there. Has anyone faced this kind of issue?<o:p></o:p></p>
<p class="MsoPlainText">Please let me know how to resolve this issue.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thanks and regards,<o:p></o:p></p>
<p class="MsoPlainText">Nagalakshmi<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">=====================================================<o:p></o:p></p>
<p class="MsoPlainText">Please refer to <a href="https://northamerica.altran.com/email-disclaimer">
<span style="color:windowtext;text-decoration:none">https://northamerica.altran.com/email-disclaimer</span></a><o:p></o:p></p>
<p class="MsoPlainText">for important disclosures regarding this electronic communication.<o:p></o:p></p>
<p class="MsoPlainText">=====================================================<o:p></o:p></p>
</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>