Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13613 closed patch (fixed)

Encrypted connections support in Gadu-Gadu

Reported by: tomkiewicz Owned by: bartosz
Milestone: 2.8.0 Component: Gadu-Gadu
Version: 2.7.11 Keywords: gnutls ssl
Cc: rekkanoryo

Description (last modified by tomkiewicz)

Since new Gadu-Gadu 10 protocol and libgadu 1.10.0 (our internal libgadu was recently updated to 1.10.1, here: #13525) there is support for encrypted connections (via SSL).

I have managed to enable it - see patch.

I have tested it under Linux with gnutls enabled and disabled. I tried to sniff communications: in first case, nothing could be listen in; in the second one, all messages were sent plain-text (like as in 2.7.11). In both cases everything worked fine.

Could anybody with Windows machine try it out? I think, there is need to make some changes in Makefile.mingw file (like in Makefile.am).

Attachments (3)

pidgin-gg-tls-support.patch (2.1 KB) - added by tomkiewicz 8 years ago.
pidgin-gg-tls-support.2.patch (2.1 KB) - added by tomkiewicz 8 years ago.
Added some debugging informations
pidgin-gg-tls-support.3.patch (2.3 KB) - added by tomkiewicz 8 years ago.
Enabled encrypted connections with external libgadu

Download all attachments as: .zip

Change History (11)

Changed 8 years ago by tomkiewicz

comment:1 Changed 8 years ago by tomkiewicz

  • Description modified (diff)

Changed 8 years ago by tomkiewicz

Added some debugging informations

comment:2 Changed 8 years ago by tomkiewicz

Also, it should be checked with external libgadu. I think, it will require one small change "#ifdef USE_GNUTLS" -> "#ifdef USE_GNUTLS or USE_EXTERNAL_LIBGADU" (or something like that).

If external libgadu won't be compiled with ssl support, it will end with a small note in debug window (but will work anyway).

comment:3 Changed 8 years ago by rekkanoryo

Pidgin on Windows uses Mozilla NSS, not GNUTLS. SSL support will thus not be available elsewhere. I don't suppose libgadu can be coerced into just using an fd we construct and hand it, so we could use our own SSL support to get around that?

comment:4 Changed 8 years ago by tomkiewicz

I think, the best way to solve this, is asking libgadu developers for NSS support. Maybe even I could help them implement it. I will contact them.

Anyway, I suggest introducing encryption support for Linux now (by GnuTLS), and for Windows later (when we work out any solution).

comment:5 Changed 8 years ago by tomkiewicz

I was talking with libgadu developer. If I manage to implement NSS support in libgadu, they will include that code in following version of library. Then we could enable encryption support for Windows.

Unfortunately, It will take more time. And encryption with GnuTLS could be ready for 2.8.0, providing such important feature for Linux users earlier :).

Changed 8 years ago by tomkiewicz

Enabled encrypted connections with external libgadu

comment:6 Changed 8 years ago by tomkiewicz

I have checked it with external libgadu and it works fine now.

comment:7 Changed 8 years ago by tomkiewicz@…

  • Milestone set to 2.8.0
  • Resolution set to fixed
  • Status changed from new to closed

(In 0e7cdec888643c43ad219ca4f764fe142b9beea3):
Gadu-Gadu: Add encrypted (SSL) connection support for GNUTLS users. Fixes #13613.

comment:8 Changed 8 years ago by rekkanoryo@…

(In 2f2d88652d61f02ffb30643d8b6a7c6b86ebdb2b):
ChangeLog and credit tomkiewicz's patch. Refs #13613.

Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!