OpenSSL compilation errors in Windows
Matt Caswell
matt at openssl.org
Mon Sep 30 11:02:23 UTC 2019
On 30/09/2019 11:56, Nagalakshmi V J wrote:
> In our code, We included “ssl_locl.h” which in turn includes packet_locl.h. Any
> way to avoid this kind of error?
Don't include "ssl_locl.h"!!! This is an internal header file and relying on it
is likely to cause problems for you. There are no stability guarantees if you
use internal stuff. For example commit b5acbf9148 just renamed that file to
ssl_local.h. That change will be in OpenSSL 1.1.1e - so your code will break at
that point if you upgrade.
Anything in your code that relies on that internal data will need to be
rewritten to use the public APIs instead.
Matt
>
>
>
> Thanks and regards,
>
> Nagalakshmi
>
>
>
> -----Original Message-----
> From: Dr. Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
> Sent: Monday, September 30, 2019 2:10 PM
> To: Nagalakshmi V J <nagalakshmi.j at altran.com>; openssl-users at openssl.org
> Cc: Umamaheswari Nagarajan <umamaheswari.nagarajan at altran.com>
> Subject: AW: OpenSSL compilation errors in Windows
>
>
>
> ** This mail has been sent from an external source **
>
>
>
>
>
>> 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
>
>
>
> Is it possible that your error message was copied incorrectly? Line 429 is an
> assignment from 'void *' to 'unsigned char*', not to 'unsigned char'.
>
>
>
> 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.
>
>
>
> HTH,
>
> Matthias
>
>
>
>
>
>
>
>
>
>
>
>
>
> Dr. Matthias St. Pierre
>
> Senior Software Engineer
>
> matthias.st.pierre at ncp-e.com <mailto:matthias.st.pierre at ncp-e.com>
>
> Phone: +49 911 9968-0
>
> www.ncp-e.com <http://www.ncp-e.com>
>
>
>
> 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
>
>
>
> 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
>
>
>
> 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.
>
> Von: openssl-users <openssl-users-bounces at openssl.org
> <mailto:openssl-users-bounces at openssl.org>> Im Auftrag von Nagalakshmi V J
>
> Gesendet: Montag, 30. September 2019 08:44
>
> An: openssl-users at openssl.org <mailto:openssl-users at openssl.org>
>
> Cc: Umamaheswari Nagarajan <umamaheswari.nagarajan at altran.com
> <mailto:umamaheswari.nagarajan at altran.com>>
>
> Betreff: OpenSSL compilation errors in Windows
>
>
>
> Hi,
>
> 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.
>
> 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.
>
> 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
>
>
>
> Since it is giving error in Openssl code, we cannot make any code changes there.
> Has anyone faced this kind of issue?
>
> Please let me know how to resolve this issue.
>
>
>
>
>
>
>
> Thanks and regards,
>
> Nagalakshmi
>
>
>
> =====================================================
>
> Please refer to https://northamerica.altran.com/email-disclaimer
>
> for important disclosures regarding this electronic communication.
>
> =====================================================
>
> =====================================================
> Please refer to https://northamerica.altran.com/email-disclaimer
> for important disclosures regarding this electronic communication.
> =====================================================
More information about the openssl-users
mailing list