Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Page: previous  1  2 
Avatar
Alex #16
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi Sean,

this is exactly the position where the library(client) is sending the StartTLS command over the socket. Its switching here from unencryped socket to TLS encryped socket. With a async stream the Mono Security library had problems here in older versions. So i was sending a space here which starts all the SSL stuff, and after that the real data. This is no problem because the space is just a ignored whitespace in XMPP between stanzas.

It would be easier if you try first the the "old style SSL " working, and after that the StartTLS stuff. For the old SSL you have to set UseSSL = true, and Port =5223, UseTLS should be false but i think it doent matter.
With this settings the socket is SSL from the beginning, if your server is configured to listen for SSL sockets on port 5223.

Alex
Avatar
Sean #17
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

I am trying to connect to googletalk which requires TLS. Do I need to implement the send part myself?

Thanks,

Sean
Avatar
Alex #18
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
no, everything for TLS is implemented, its works perfect with GoogleTalk and the "Desktop" framework.

Alex
Avatar
Sean #19
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
OK, I will try to re-implement this on pocket pc. I will be away for a week so I will update you when I get back.
Have a good Christmas,

Sean.
Avatar
Alex #20
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi Sean,

if your SSL library is working like Mono.Security or the new SSLStream in .NET 2.0 it should work without any changes in the code.
If you publish your XML library i can also try this over christmas. Or is your lib closed source?

Alex
Avatar
Sean #21
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

The project is as yet, neither Open or closed source, as it is still in it's infancy. If I send you the implementation of Mono I have been working on will this have any implications on my rights to use it with agsxmpp comercially in the future?

Sean.
Avatar
Alex #22
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
i sent a private mail to you

Alex
Avatar
Alex #23
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi Sean,

here is also a very good small sample to test the SSL TLS implementation.
http://bugzilla.ximian.com/show_bug.cgi?id=75687

Alex
Avatar
kltye #24
Member since Aug 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
I hate to bring up an old topic, but has any progress been made on this? After much experimenting, I just realized this won't work on Pocket PCs :P
Avatar
Jabberer #25
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Hello,

Google-Talk allows only secure connections (SSL or TLS). There is no SSLStream included in the compact Framework.
You can connect to any XMPP server which allows non secured connections. This are nearly all XMPP servers, but not GTalk.
Alex and Sean both started to work on a port of Mono.Security to CF2.0. I think both were stuck in a similar problem and never finished it. Any help on this topic is appreciated. We at AG-Software are currently busy with other stuff and moved the priority of SSL for compact Framework to low.
Software Developer
AG-Software
Avatar
Alex #26
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

You can connect to GTalk without SSL if you use the X-GOOGLE-TOKEN authentication.
All you have to do is create a new SASL mechanism class in agsXMPP for X-GOOGLE-TOKEN authentication.

Alex
Avatar
Alex #27
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

we implemented X-GOOGLE-TOKEN authentication. So agsXMPP is able to connect to GTalk also on PPC and Smartphone now. We will commit this code soon to SVN and it will be in the next release.
Contact us by Email if you want test the code before we commited it.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page: previous  1  2 
Forum: agsXMPP RSS