[jdev] How to do SASL authentication in C/C++
ashiraz
ashiraz.3iqvnz at no-mx.jabberforum.org
Tue Nov 11 22:17:19 CST 2008
Justin Karneges;4900 Wrote:
> On Monday 10 November 2008 21:39:06 ashiraz wrote:
> > I have started to write socket level code for interaction with a
> jabber
> > server like gtalk.
> >
> > I am sending this thing xml strings but in the authentication phase
> it
> > requires SASL encryption. Is there an expeditious way of encrypting
> > authentication code?
>
> It's common to use libraries for SASL, but we've already had a
> discussion
> about libraries. That said, it's also very common to not use libraries
> for
> SASL. Lots of people write their own code for one reason or another.
>
> You need to decide what mechanisms to implement. Probably you'd do
> PLAIN
> and/or DIGEST-MD5. Consult the RFCs. You should only do PLAIN if you
> plan
> to protect the stream with TLS.
>
> Long ago, somebody wrote the smallest tutorial ever for DIGEST-MD5, and
> it's
> even written in the context of XMPP:
> http://tinyurl.com/5whlpf
>
> -Justin
I should have focused on this response because this is more promising
AND provides a possible and legitimate solution.
Is there a remote chance that there is an xmpp compliant server (like
gtalk) that I can login to that does not require sasl authentication? I
am asking because in order to do this encoding I would need to compile/
build some c/c++ library and that seems like a difficult thing at this
point.
Is it possible for me to setup my own jabber server on local machine,
log in to that server (on my local machine) and THEN try to send
messages as an account holder to something like sip at jabber.ietf.org (a
chatroom)?
--
ashiraz
------------------------------------------------------------------------
ashiraz's Profile: http://www.jabberforum.org/member.php?userid=17305
View this thread: http://www.jabberforum.org/showthread.php?t=1061
More information about the JDev
mailing list