libstrophe icon indicating copy to clipboard operation
libstrophe copied to clipboard

Libstrophe-based test case to ask for help

Open SpongeBob-SquarePants opened this issue 13 years ago • 3 comments

Then I look at the test / bot case Please predecessors help us to see

./bot admin@localhost wanghao xmpp DEBUG SRV lookup failed. xmpp DEBUG Using alternate domain <NULL>, port 0 xmpp DEBUG sock_connect to localhost:5222 returned 3 xmpp DEBUG attempting to connect to localhost xmpp DEBUG connection successful conn DEBUG SENT: <stream:stream to="localhost" xml:lang="en" version="1.0" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams"> xmpp DEBUG RECV: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='ubuntu' id='5ce74158' xml:lang='en' version='1.0'> xmpp DEBUG RECV: stream:featuresDIGEST-MD5PLAINANONYMOUSCRAM-MD5zlib/stream:features conn DEBUG SENT: xmpp DEBUG RECV: xmpp DEBUG handle proceedtls called for proceed xmpp DEBUG proceeding with TLS

Wrote this when stopped Ask for help

SpongeBob-SquarePants avatar Aug 13 '12 06:08 SpongeBob-SquarePants

My only guess is that perhaps it's not compiled with the right TLS lib?

It should be sending a new stream header right then, but this header would be the first set of bytes that are TLS encrypted. Any errors on the server side?

metajack avatar Aug 13 '12 12:08 metajack

What is the I am taking the test is to use a / the bot [email protected] wanghao is not xmpp wait for the DEBUG proceeding with the TLS this. Can you tell me, I am here under the libstrophe the source code examples of how to run the examples in the bot.c Please predecessors have advice

SpongeBob-SquarePants avatar Aug 13 '12 17:08 SpongeBob-SquarePants

Please predecessors help us to see

Own openfire server from the Internet through. Run bot.c case procedures, and results: . / Bot admin @ localhost wanghao xmpp DEBUG SRV lookup failed. xmpp DEBUG Using alternate domain, port 0 xmpp DEBUG sock_connect to localhost: 5222 returned 3 xmpp DEBUG attempting to connect to localhost xmpp DEBUG connection successful conn DEBUG SENT: xml version = "1.0"?> xmpp DEBUG RECV: xmpp DEBUG RECV: stream: featuresDIGEST-MD5PLAINANONYMOUSCRAM-MD5zlib/stream: features conn DEBUG SENT: xmpp DEBUG RECV: xmpp DEBUG handle proceedtls called for proceed xmpp DEBUG proceeding with TLS

Leave it at that fixed

Can I run a gmail:

. / Bot [email protected] wanghao19881215 xmpp DEBUG sock_connect to alt1.xmpp.l.google.com: 5222 returned 3 xmpp DEBUG attempting to connect to alt1.xmpp.l.google.com xmpp DEBUG connection successful conn DEBUG SENT: xml version = "1.0"?> <stream: stream to = "gmail.com" xml: lang = "en" version = "1.0" xmlns = "jabber: client" xmlns: stream = "http :/ / etherx.jabber.org / streams "> xmpp DEBUG RECV: <stream:stream from='gmail.com' id='86D3AAE7CC4FB31B' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'> xmpp DEBUG RECV: stream:features </ starttls> X-GOOGLE-TOKEN </ mechanism> X-OAUTH2 </ mechanism> </ mechanisms> </ stream: features> conn DEBUG SENT: xmpp DEBUG RECV: xmpp DEBUG handle proceedtls called for proceed xmpp DEBUG proceeding with TLS conn DEBUG SENT: xml version = "1.0"?> <stream: stream to = "gmail.com" xml: lang = "en" version = "1.0" xmlns = "jabber: client" xmlns: stream = "http :/ / etherx.jabber.org / streams "> xmpp DEBUG RECV: <stream:stream from='gmail.com' id='FB47C107B2AAE8DD' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'> xmpp DEBUG RECV: stream:features PLAIN </ mechanism> X-GOOGLE-TOKEN </ mechanism> < mechanism> X-OAUTH2 </ mechanism> </ mechanisms> </ stream: features> conn DEBUG SENT: AHczMzA1NjQ5MDkAd2FuZ2hhbzE5ODgxMjE1 </ auth> xmpp DEBUG RECV: xmpp DEBUG SASL PLAIN auth successful conn DEBUG SENT: xml version = "1.0"?> <stream: stream to = "gmail.com" xml: lang = "en" version = "1.0" xmlns = "jabber: client" xmlns: stream = "http :/ / etherx.jabber.org / streams "> xmpp DEBUG RECV: <stream:stream from='gmail.com' id='86E514DE9FCBDA9F' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'> xmpp DEBUG Reopened stream successfully. xmpp DEBUG RECV: stream:features <session xmlns = "urn: ietf: params: xml: ns: xmpp-session" / > </ stream: features> conn DEBUG SENT: </ iq> xmpp DEBUG RECV: [email protected] / 37E40184 </ jid > </ bind> </ iq> xmpp DEBUG Bind successful. conn DEBUG SENT: </ iq> xmpp DEBUG RECV: xmpp DEBUG Session establishment successful. DEBUG: connected conn DEBUG SENT: xmpp DEBUG RECV: 24 </ priority> <caps: c xmlns: caps = "http: / / jabber.org / protocol / caps "ext =" pmuc-v1 sms-v1 vavinvite-v1 "ver =" 1.1 "node =" http://mail.google.com/xmpp/client/caps "/> < x xmlns = "vcard-temp: x: update"> </ x> </ presence>

why? Help me to answer you.

SpongeBob-SquarePants avatar Aug 14 '12 10:08 SpongeBob-SquarePants