2009/2/4 Andrew Rechenberg Lists <flux...@resurgent.com>: > I have the NTLM code in Sofia working about 95% now (with regard to > authenticating to a Microsoft Office Communications Server 2007) but I > have some questions as to the proper places to put things before I > submit a patch (multiple patches (?)).
That sounds cool. Tp-sofiasip sure needs it ;-) > In its current incarnation the NTLM code relies on a couple of extra > dependencies - zlib and iconv are the only ones as far as I can > remember. Zlib is used for one function call to generate an NTLM > signature used to sign the SIP requests. Iconv is used to convert > usernames, passwords, and domains to UTF-16LE. NTLM uses some zlib hash? Yikes. Do you know if the UTF-16LE conversion is mechanical or does it involve some kind of case conversions, so, like, converting username YrjöMöykkälä to YRJÖMÖYKKÄLÄ? If it is mechanical, utf8 to utf16 should be relative trivial (in fact, I think there are some ancient Sofia code doing utf-8 to ucs-2 bmp). > All of the NTLM code is just ported from the SIPE project (SIP for > Exchange plugin for the Pidgin IM client - http://sipe.sourceforge.net/, > http://repo.or.cz/w/siplcs.git). Thanks to Gabriel Burt for him writing > the initial code and for help troubleshooting the port. > > I'm not sure what your stance is on adding more dependencies to Sofia, > but they would only be added if the user wanted to compile the library > with NTLM support. I tried to keep the additions to a minimum. > I have added some fields to the auth_challenge_t and auth_response_t > structs however those structs are defined in auth_digest.h. Should I > move my bits to auth_ntlm.h and create auth_ntlm_challenge_t and > auth_ntlm_response_t structs or leave them where they are? If I create > new structs will that interfere with any other bits of the iptsec code > that will require additional modifications? It is hard to say yes or aye without seeing the code... Could you post your modified code (publish it on internet, to the list or to me personally)? -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel