Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rfef7813 r858ea01  
    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() );
     
    167181                   doesn't make a copy. Odd. */
    168182               
    169                 i = chdir( old_cwd );
     183                chdir( old_cwd );
    170184                close( global.listen_socket );
    171185               
Note: See TracChangeset for help on using the changeset viewer.