<div dir="ltr">I have a sample program that has:<div>#include <openssl/ssl.h><br>#include <openssl/err.h><br><div><br></div><div>I go look in C:\Users\MyUser\Documents\OpenSSL\include\openssl and I find:</div><div><br></div><div><a href="http://ssl.h.in">ssl.h.in</a></div><div><a href="http://err.h.in">err.h.in</a></div><div><br></div><div>but  doesn't have</div><div><br></div><div><div>ssl.h</div><div>err.h</div><div><br></div><div>So the compile gets an error. </div><div><br></div><div>What is going on here?</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="monospace, monospace"><br></font><div><div style="font-size:12.8px"><div style="font-size:12.8px"><font face="monospace, monospace">Don Payette</font></div><div style="font-size:12.8px"><span style="font-family:monospace,monospace;font-size:small">(cell) <a href="tel:(479)%20216-6320" value="+14792166320" style="color:rgb(17,85,204)" target="_blank">479-216-6320</a></span></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 24, 2023 at 1:23 PM Michael Wojcik via openssl-users <<a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> From: Don Payette <<a href="mailto:payettedon@gmail.com" target="_blank">payettedon@gmail.com</a>> <br>
> Sent: Wednesday, 24 May, 2023 12:12<br>
<br>
> The compiler is Visual C++. <br>
<br>
Microsoft Visual C++ (a misnomer) is both a C and C++ compiler. In recent versions it's even come close to providing a conforming implementation of a decently reasonable edition of the C standard.<br>
<br>
> I'm trying to fix this C code to work in Windows since my app is a Windows service written in Visual C++. It<br>
> would be be real nice if openSSL had a version of the sample program that works in Microsoft Visual C++.<br>
<br>
It does. OpenSSL includes the various utilities that are bundled into the "openssl" executable ("openssl.exe" on Windows). They're part of the OpenSSL source tree, in the apps directory. If you configure OpenSSL to be built by Visual C++, then those programs will also build under Visual C++.<br>
<br>
They are all C, not C++, but it's much simpler to go from C to C++ since most of the C standard is incorporated into C++.<br>
<br>
(Officially the entire C standard is incorporated into the C++ standard, if memory serves and that hasn't changed since the last time I muddled through the C++ standard. In practice, of course, C++ invades the application namespace all over the place, and a significant number of C best practices don't work in C++ due to differences in things like type handling. But it's still less work to convert C to C++, or simply use C within C++. I don't recommend using C in a C++ application; if you're going to put up with the infelicities of C++, you might as well get the benefits. But many people do it nonetheless.)<br>
<br>
-- <br>
Michael Wojcik<br>
</blockquote></div>