How to load dylib ?
How to load dylib ?
- Subject: How to load dylib ?
- From: Eric Arlotti <email@hidden>
- Date: Tue, 5 Jul 2005 16:34:13 +0200
Hello everyone,
I have a Carbon CFM shared library that needs to access OpenSSL
functions.
Under Panther, I used to load the "System.framework" bundle (using
CFBundleCreate/ CFBundleLoadExecutable) and get every function pointer
with CFBundleGetFunctionPointerForName. This works great with Panther
but not with Tiger : I just can't find any reference to all SSL_xxx
functions. I suppose that I made a wrong assumption about accessing
OpenSSL from "System.framework" and that Tiger is more severe about
this kind of assumption (if someone has any information about this
issue, thanks to share).
So, I changed my strategy and I am now trying to build a private Mach-O
framework to act as a wrapper to OpenSSL.
The problem is that I don't really know how to load the OpenSSL dynamic
libraries (libcrypto.dylib and libssl.dylib) and get the functions
pointers. I have found something about Dynamic Loader API and "dlopen"
but it seems to be available since 10.4 and I'm looking for a solution
that would work on 10.3 also.
What is the correct API to load and use dylibs ? Is there any sample
code ? Or a technical note ?
Thanks for your help.
Eric Arlotti
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden