 |
 |
Where are the openssl headers?
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2000
Location: Medford, MA
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
Originally posted by PerfectlyNormalBeast:
<STRONG>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?
</STRONG>
Interesting. Didn't know about that C++ quirk. However, the <netinet/in.h> 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.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|