libpurple.framework and SSL Support
John Indra
john.indra at gmail.com
Wed Mar 7 04:09:50 UTC 2012
Hi Evan,
Thank you very much for the prompt reply. Really appreciated.
However I am new with C and Cocoa. Could you help answer the questions below?
1. Are you saying that the libpurple.framework supplied with Adium was built with no SSL support?
2. If my app wants to have libpurple with SSL support, do I have to recompile from Adium's source?
3. Or can I just drop AdiumLibpurple.framework to my project and add Security.framework?
Best regards,
John
On Mar 7, 2012, at 10:51 AM, Evan Schoenberg, M.D. wrote:
> Adium uses the Security framework and CDSA via an libpurple extension (ssl-cdsa.c). Search the Adium source tree for purple_init_ssl_plugin() and purple_init_ssl_cdsa_plugin(), add ssl.c and ss-cdsa.c, and be sure to define HAVE_CDSA in your preprocessor defines on the target and link against Security.framework.
>
> -Evan
>
> On Mar 6, 2012, at 9:45 PM, John Indra wrote:
>
>> Hi all,
>>
>> I am trying to learn libpurple. Since I use a Mac and Adium uses libpurple, I thought I could start with Adium's copy of libpurple.framework. I am using the latest Adium beta 1.5rc5.
>>
>> After creating a new Cocoa app using Xcode 4, I dragged the following directories (from /Applications/Adium.app/Contents/Frameworks):
>> libglib.framework
>> libgmodule.framework
>> libgobject.framework
>> libgthread.framework
>> libintl.framework
>> libjson-glib.framework
>> libmeanwhile.framework
>> libotr.framework
>> libpurple.framework
>> to my project's Frameworks (I copied all to my project directory). Xcode then automatically added those frameworks to the list of libraries my app will be linked against. I also set so those frameworks will be copied to the app bundle. I copied all the headers from Adium's repo so I could build my app. All went fine… until this function:
>>
>> purple_ssl_is_supported() returns FALSE
>>
>> There must be something missing in my setup. How do I get SSL support with Adium supplied libpurple?
>>
>> Thanks in advance.
>>
>> Best regards,
>> John
>>
>>
>
>
More information about the devel
mailing list