diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-24 00:12:24 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-24 00:12:24 +0100 |
commit | be999a5385ff4e9ac7416de4cca3288f18cee85c (patch) | |
tree | ddd6a6e256719c378e9748e0d96791e11844f659 /unix.c | |
parent | 237eadd361a7ed1d2a49180056d12b57f6f3cc0a (diff) | |
parent | eb6df6a280c458546ebc57126e63a828674b4cd8 (diff) |
First step in this merge. Mostly a bzr merge and then a cleanup of conflicts
and parts I want to/have to redo (because of ui-fix).
Diffstat (limited to 'unix.c')
-rw-r--r-- | unix.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -28,9 +28,11 @@ #include "arc.h" #include "base64.h" #include "commands.h" +#include "otr.h" #include "protocols/nogaim.h" #include "help.h" #include "ipc.h" +#include "lib/ssl_client.h" #include "md5.h" #include "misc.h" #include <signal.h> @@ -68,6 +70,14 @@ int main( int argc, char *argv[] ) b_main_init(); + /* Ugly Note: libotr and gnutls both use libgcrypt. libgcrypt + has a process-global config state whose initialization happpens + twice if libotr and gnutls are used together. libotr installs custom + memory management functions for libgcrypt while our gnutls module + uses the defaults. Therefore we initialize OTR after SSL. *sigh* */ + ssl_init(); + otr_init(); + srand( time( NULL ) ^ getpid() ); global.helpfile = g_strdup( HELP_FILE ); |