Sent the thank you message using another email account so it bounced. Resending
Begin forwarded message: > From: John Indra <i.j...@me.com> > Subject: Re: libpurple.framework and SSL Support > Date: March 7, 2012 4:13:15 PM GMT+07:00 > To: Thijs Alkemade <thijsalkem...@gmail.com>, Adium Development List > <devel@adium.im> > > All, > > Sorry to bother you all with such a noob questions. > I manage to get SSL support working! > Thanks. > > I forgot to initialize the plugin. So sorry for that. > > w00t > > Thanks once more. > > Best regards, > John > > On Mar 7, 2012, at 4:04 PM, John Indra wrote: > >> Hi Thijs, >> >> Thank you so much for elaborating. Looks like Evan already gave me the >> complete guide but I failed to understand. >> >> Thus now here's my position: >> >> I added the 2 files you mentioned: ssl.c and ssl-cdsa.c to my project, add >> Security.framework, add HAVE_CDSA in preprocessor macros, for both Debug and >> Release. Compilation goes smoothly. >> >> Like previous time, I execute a method with just this statement: >> >> printf("SSL support: %d", purple_ssl_is_supported()); >> >> It still prints 0 :( >> >> Is there something I must do to initialize the SSL support? >> >> Thank you so much. >> >> Best regards, >> John >> >> On Mar 7, 2012, at 3:13 PM, Thijs Alkemade wrote: >> >>> >>> On 7 mrt. 2012, at 05:09, John Indra wrote: >>> >>>> 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? >>> >>> That is correct. >>> >>>> 2. If my app wants to have libpurple with SSL support, do I have to >>>> recompile from Adium's source? >>> >>> That is not necessary. The only two files from Adium's source you need are >>> ssl.c and ssl_cdsa.c >>> (see >>> http://hg.adium.im/adium/file/tip/Plugins/Purple%20Service/libpurple_extensions/ssl.c >>> and >>> http://hg.adium.im/adium/file/tip/Plugins/Purple%20Service/libpurple_extensions/ssl-cdsa.c). >>> You should >>> be able to use these files without any other parts of Adium's source code >>> (they only depend on libpurple >>> itself and system frameworks). >>> >>> Here: >>> http://hg.adium.im/adium/file/89eb0d28dc0f/Plugins/Purple%20Service/adiumPurpleCore.m#l73 >>> you can see how these are loaded. >>> >>>> 3. Or can I just drop AdiumLibpurple.framework to my project and add >>>> Security.framework? >>>> >>> >>> You could, but AdiumLibpurple.framework is linked against Adium.framework, >>> AIUtilities, etc. >>> You'd bring in a lot more code then you'd need. >>> >>> Thijs >>> >> >