Your stream header should look like:
<?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' 
id='some-value' xmlns='jabber:component:accept' to='winauth'>

base_accepts's reply header will look like:
<?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' 
id='1234' xmlns='jabber:component:accept' from='winauth'>

Of course, these examples assume the id on the base_accept service is winauth.

Schuyler

On Sun, Apr 15, 2001 at 09:54:19PM +0200, frank wrote:
> What should stream header look like? This is the problem I can't resolve...
> Could you post an example?
> 
> Frank
> 
> 
> 
> > After you write your stream header to the socket, base_accept should write
> one
> > back.  On the stream header which base_accept wrote back there is a id=""
> > attribute.  Make a SHA1 hash of the id + password and send it back in a
> handshake
> > tag: <handshake>sha-hash</handshake>
> > base_accept will send an empty <handshake/> tag in acknowledgement,
> > or close the stream if the password was wrong.
> 
> 
> _______________________________________________
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev
> 

PGP signature

Reply via email to