[jdev] TSL negotiation
Amitesh Singh
singh.amitesh at gmail.com
Fri Feb 17 18:06:00 CST 2006
ello every one
i am developing a IM (in C/C++) using the google talk server .. i read the
RFC of XMPP - Hide quoted text -
and understood it very well.. i am trying to develop this client from
scratch my
application is independent of any lib ... as a first step i am trying to
connect to
the google server .... as our network is behind the FW so i have written a
code
which uses the SOCKS_PROXY to connect to the google server.. i have
understood the steps for procceding the login . Which i am going to
illustarte you
==========================================================
C: <?xml version='1.0'?>
C: <stream:stream to='gmail.com' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'
version='1.0'>
S: <?xml version="1.0" encoding="UTF-8"?><stream :stream from="gmail.com"
id="949A13CEE836125B" version="1.0" xmlns:stream="
http://etherx.jabber.org/streams" xmlns="jabber:client">
S: <stream:features><starttls xmlns="urn:ietf:params:xml:ns
:xmpp-tls"/><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>
/*Start TLS */
C: <starttls xmlns='urn:ietf:params:xml:ns :xmpp-tls'/>
S: <proceed xmlns="urn:ietf:params:xml:ns :xmpp-tls"/>
/* Now after 'starttls',how to begin TSL negotiation b/w the Client and
server by sending Client Hello Command.*/
/*Here ,Client sends Hello and Server also sends Hello to Client ,i want to
know how to code for that using Lib or doing it from Scratch :P*/
/*after TSL neg ... start new XML stream */
.....
.....
..
I wanna know how to begin TCP negotiation by sending client hello command
.... ?
any examples (C code) ?
Thanks
ami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20060218/0f17143f/attachment-0002.htm>
More information about the JDev
mailing list