~ubuntu-branches/ubuntu/intrepid/pidgin/intrepid-security

« back to all changes in this revision

Viewing changes to libpurple/protocols/qq/buddy_info.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-04-04 02:18:00 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404021800-qaa00wom38gd7xus
Tags: 1:2.4.1-1ubuntu1
* Sync with Debian, remaining Ubuntu changes; (LP: #211769)
  - debian/control:
    + Set Maintainer to Ubuntu Core Developers.
    + Add build-deps on liblaunchpad-integration-dev, intltool,
      libnm-glib-dev (for --enable-nm)
    + Drop build-deps on libsilc-1.1-2-dev | libsilc-dev (>= 1.1.1) as
      this library is in universe.
    + Drop the libpurple0 recommends on libpurple-bin.
    + Add a gaim transitionnal package for upgrades.
    + Moved finch's libx11-6 dependency to Suggests
  - Ship compatibility symlinks via debian/gaim.links
  - debian/rules:
    + Pass --enable-nm to configure to enable NetworkManager support
    + Pass --disable-silc to configure to disable silc support even if
      it's installed in the build environment.
    + Add X-Ubuntu-Gettext-Domain to the desktop file and update the
      translation templates in common-install-impl::.
    + Added necessary arguments to dh_shlibdeps for finch
  - Update debian/prefs.xml to set the notify plugin prefs
    /plugins/gtk/X11/notify/* and set /pidgin/plugins/loaded to load
    the notify plugin
  - debian/patches:
    + 02_lpi for LP integration
    + 04_let_crasher_for_apport to stop catching the SIGSEGV signal
      and let apport handle it
    + 05_default_to_irc_ubuntu_com to set the default IRC
      server to irc.ubuntu.com.
    + 70_autoconf patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
541
541
        len = buf_len;
542
542
        data = g_newa(guint8, len);
543
543
 
544
 
        if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) {
 
544
        if (qq_decrypt(buf, buf_len, qd->session_key, data, &len)) {
545
545
                data[len] = '\0';
546
546
                if (qd->uid == atoi((gchar *) data)) {  /* return should be my uid */
547
547
                        purple_debug(PURPLE_DEBUG_INFO, "QQ", "Update info ACK OK\n");
718
718
        data = g_newa(guint8, len);
719
719
        info = NULL;
720
720
 
721
 
        if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) {
 
721
        if (qq_decrypt(buf, buf_len, qd->session_key, data, &len)) {
722
722
                if (NULL == (segments = split_data(data, len, "\x1e", QQ_CONTACT_FIELDS)))
723
723
                        return;
724
724
 
828
828
        
829
829
        decr_len = buf_len;
830
830
        decr_buf = g_new0(guint8, buf_len);
831
 
        if (!qq_crypt(DECRYPT, buf, buf_len, qd->session_key, decr_buf, &decr_len)) {
 
831
        if (!qq_decrypt(buf, buf_len, qd->session_key, decr_buf, &decr_len)) {
832
832
                purple_debug(PURPLE_DEBUG_ERROR, "QQ", "Couldn't decrypt get level packet\n");
833
833
        }
834
834