libcrypto... again
libcrypto... again
- Subject: libcrypto... again
- From: "Ben Kennedy" <email@hidden>
- Date: Wed, 5 Nov 2003 20:40:22 -0500
- Organization: Zygoat Creative Technical Services
All,
Libcrypto is once again frustrating the hell out of me. Hence, I have a
simple question:
What do I do to make my app use libcrypto 0.9(.6) successfully on all
versions of Mac OS X?
Before I upgraded to Panther+Xcode, my app built fine with Jag+PB and ran
fine on all Mac OS from 10.1 to 10.3. Now, I seem to be out of luck:
- If I link against libcrypto.dylib (aka libcrypto.0.9.7), the app will
run only on Panther due to the version dependency.
- If I link against libcrypto.0.9.dylib, the app crashes in
EVP_VerifyInit and/or EVP_VerifyUpdate, which trash memory, despite
whether run under Panther or Jaguar.
Somebody on the Cocoa list was suggesting that there are problems using
0.9.7 headers while linking against 0.9(.6). So, I want to use the 0.9.6
headers. I've tried with both the 10.1.5 and 10.2.7 SDK's, but despite
that, Xcode seems to be using the 10.3 headers. Why do I think so?
Because I've added the following line to my code:
NSLog(@"%s", OPENSSL_VERSION_TEXT);
Given that the constant is defined as "OpenSSL 0.9.6i Feb 19 2003" on
line 29 of /Developer/SDKs/MacOSX10.2.7.sdk/usr/include/openssl/
opensslv.h, that's what I expect to see since I'm building with the 10.2
SDK. Alas, what I see in console:
2003-11-05 20:33:15.585 Doggiebox[1039] OpenSSL 0.9.7b 10 Apr 2003
I have completely cleaned and rebuilt my project.
What am I doing wrong here?
-ben
--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.