Changeset ba5add7 for unix.c


Ignore:
Timestamp:
2008-02-17T01:39:39Z (16 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
82e8fe8
Parents:
fd9fa52
Message:

explicitly initialize ssl in order to avoid gnutls and libotr fighting over the global state of libgcrypt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rfd9fa52 rba5add7  
    3131#include "help.h"
    3232#include "ipc.h"
     33#include "lib/ssl_client.h"
    3334#include <signal.h>
    3435#include <unistd.h>
     
    5556        b_main_init();
    5657        nogaim_init();
     58        /* Ugly Note: libotr and gnutls both use libgcrypt. libgcrypt
     59           has a process-global config state whose initialization happpens
     60           twice if libotr and gnutls are used together. libotr installs custom
     61           memory management functions for libgcrypt while our gnutls module
     62           uses the defaults. Therefore we initialize OTR after SSL. *sigh* */
     63        ssl_init();
    5764        otr_init();
    5865       
Note: See TracChangeset for help on using the changeset viewer.