Changeset 6197702 for unix.c


Ignore:
Timestamp:
2010-10-09T18:41:19Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d150a9d
Parents:
23b29c6 (diff), 27b407f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging OTR branch. It's more or less a plugin if you enable it, and
otherwise a no-op. DO NOT INSTALL THIS ON PUBLIC SERVERS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    r23b29c6 r6197702  
    2929#include "base64.h"
    3030#include "commands.h"
     31#include "otr.h"
    3132#include "protocols/nogaim.h"
    3233#include "help.h"
    3334#include "ipc.h"
     35#include "lib/ssl_client.h"
    3436#include "md5.h"
    3537#include "misc.h"
     
    6870       
    6971        b_main_init();
     72       
     73        /* Ugly Note: libotr and gnutls both use libgcrypt. libgcrypt
     74           has a process-global config state whose initialization happpens
     75           twice if libotr and gnutls are used together. libotr installs custom
     76           memory management functions for libgcrypt while our gnutls module
     77           uses the defaults. Therefore we initialize OTR after SSL. *sigh* */
     78        ssl_init();
     79#ifdef OTR_BI
     80        otr_init();
     81#endif
     82        /* And in case OTR is loaded as a plugin, it'll also get loaded after
     83           this point. */
    7084       
    7185        srand( time( NULL ) ^ getpid() );
Note: See TracChangeset for help on using the changeset viewer.