Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Where are the openssl headers?

Where are the openssl headers?
Thread Tools
Dedicated MacNNer
Join Date: Sep 2000
Location: Medford, MA
Status: Offline
Reply With Quote
Jun 10, 2001, 08:20 PM
 
I can link against the openssl framework, but I only found some of the headers. I'm trying to port some software from the PC and the software uses openssl/blowfish.h, openssl/bn.h and openssl/objects.h. I found blowfish.h in the /usr/include/crypto directory, but I can't find the others. Can anyone help?
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Jun 10, 2001, 09:01 PM
 
I think the openssl headers were left out by accident when openssl was switched from a .framework in Public Beta to a .dylib in 10.0. I would assume they will come back in a future update, but they aren't there now.

If you have a copy of the Public Beta, you can retrieve them from inside the openssl.framework there. Or you could download them from the openssl project in Darwin, or just download the distribution from openssl.org to get the headers (MacOS X has version 0.9.5a... I'm sure newer versions of headers would work fine but if you have problems you may want to search out the right version). Personally I got them from the PublicBeta CD, and put them in /usr/local/include/openssl.
     
Dedicated MacNNer
Join Date: Sep 2000
Location: Medford, MA
Status: Offline
Reply With Quote
Jun 10, 2001, 09:59 PM
 
Yeah, downloaded OpenSSL from the darwin page. I hope everything links ok. I'm still working out porting bugs right now. Thanks for the help.
     
Dedicated MacNNer
Join Date: Sep 2000
Location: Medford, MA
Status: Offline
Reply With Quote
Jun 10, 2001, 10:32 PM
 
Okay... Now I'm having another nutty issue.

I need some socket stuff that's declared in <netinet/in.h>. Sadly that header file refuses to compile in Project Builder. On line 324 there is a struct called ip_opts. When I try to compile I get the following error:

ANSI C++ forbids data member 'ip_opts' with same name as enclosing class

Why won't a header that apple includes with OS X compile under ansi C++? Is it meant only to be included in C files? I don't think I can put 'extern "C" {}' around the #include directive. I don't want to change the include file, however tempting. Please help. Thank you so much.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Jun 11, 2001, 07:44 PM
 
Originally posted by PerfectlyNormalBeast:
<STRONG>I need some socket stuff that's declared in &lt;netinet/in.h&gt;. Sadly that header file refuses to compile in Project Builder. On line 324 there is a struct called ip_opts. When I try to compile I get the following error:

ANSI C++ forbids data member 'ip_opts' with same name as enclosing class

Why won't a header that apple includes with OS X compile under ansi C++? Is it meant only to be included in C files?
</STRONG>
Interesting. Didn't know about that C++ quirk. However, the &lt;netinet/in.h&gt; in FreeBSD is done exactly the same way, so it's not just a MacOS X thing. It's also not a piece of API that is lightly changed.

<STRONG>
I don't think I can put 'extern "C" {}' around the #include directive.</STRONG>
Um, why not? I would think that you have to anyways, since otherwise name mangling will take place and you won't be able to link against the (non-mangled) functions in the C library.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2