Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Page:  1  2  next
Avatar
Sean #1
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
Subject: GoogleTalk on PocketPC
Hi,

I am trying to use the library to create a GoogleTalk client on PocketPC. I have followed the example and used the google connection info. However I get an error in the connection XML - Connection must be encrypted.
The SSL connections are not setable in PPC. Can anyone suggest a reason why this might be?

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

it looks like Google allows only encrypted connections now. Encrypted means a connection over SSL or StartTLS. The library supports no SSL and TLS for PPC and Smartphone. Because there is no SSL available in the compact framework yet. And i don't know a open source SSL library that i could use for the CF. The only SSL library i have seen yet for the CF is the IPWorks SSL library at http://www.nsoftware.com/ipworks/ssl/technologie…?sku=IS…
Its commercial and i didnt test it yet. Im also not sure about the licence and redistribution.
But i didn't take a look at it yet because i don't like closed source projects.

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

OK I will have to investigate the IPWorks lib. Can you suggest an alternative I could use instead of google talk so I can use your library?

Thanks,

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

there are tons of public jabber/xmpp servers available. Here is a small list:
http://www.jabber.org/network/.

You can also install your own server. For this i would suggest JiveMessenger or ejabberd. They are both open source, free and easy to install.

If you have investigated IPWorks could you please post your results here? It should be very easy to add SSL support with this lib to agsXMPP.

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

Can you let me know what work would be required to implement SSL in the library for Pocket PC. I am in the process of producing my own SSL lib for another app and if you can let me know exactly what your lib requires then I will add it in.

Thanks,

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

all SSL code is on ClientSocket.cs in the agsXMPP.net namespace.
If somebody knows a SSL library i would really like to add it.
But i couldn't find a free SSL library yet. And i don't like commercial libraries that ship without source code.

If you write your own lib and need some help or testers i would like to help you.

I tried to port Mono.Security myself. But i never finished it. I think it would be a good start to take Mono.Seurity and port it to CF. There is also lots of new crypto stuff in the OpenNetCF now.

Another possibility is to port OpenSSL and use it with a wrapper (PInvoke). But i would prefer Mono.Security, because it works very well.

Alex
Avatar
kyokosaika #7
Member since Dec 2005 · 1 post
Group memberships: Members
Show profile · Link to this post
I have the same problem! did you resolve ite?
Avatar
Alex #8
Member since Feb 2003 · 4288 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
to solve this problem a SSL library for PPC and Smartphone is needed.

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

Just to give you an update on my progress, I have managed to Port Mono to the Compact framework but I have not yet been able to test it. I have compatability problems between my new lib which is net cf v2 and agsxmpp which is version 1. Do you have the source as a version 2 implementation? If not I will begin updating the code.

Thanks,

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

this are good news.
Yes i switched to .NET 2.0 and VS .NET 2005 a while ago. The latest code is in SVN.  If you prefer Email or FTP just send me a mail or message.

Alex
Avatar
Sean #11
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
I've done an SVN Update on the library and the version of the Framework is still 1 in Project Properties. Do you have a copy of the project which is version 2?

Sean.
Avatar
Alex #12
Member since Feb 2003 · 4288 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
oh sorry,

i thought this wizard also updates the framework version too. But i didnt.
I make a CF2.0 version and upload it.
What i have seen for now is that there is more crypto stuff in CF2.0. I think i must only remove some wrapper classes that were needed before and it should work.

Alex
Avatar
Sean #13
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
I have managed to update the Framework version myself. I had to change 2 lines of code and remove 3 files from the protocol\x\data directory. I have managed to get a not supported exception in Mono so I will continue investigating, but I think I may be on the right track. I'll keep you posted.

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

i added project files for PPC .NET 2.0, and did lots of testing. I had no problems. The code is uploaded to svn.

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

I am having some problems, I send the <Stream:Stream xml to the server after I get the proceed string from the server. Once I sen the stream XML I don't get a response. I have stepped through the code and found that there is  a call to BaseSocket.send(string) which is empty. Should there be something here?

Thanks,

Sean.
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:  1  2  next
Forum: agsXMPP RSS