diff options
Diffstat (limited to 'unix.c')
| -rw-r--r-- | unix.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| @@ -26,9 +26,11 @@  #include "bitlbee.h"  #include "commands.h"  #include "crypting.h" +#include "otr.h"  #include "protocols/nogaim.h"  #include "help.h"  #include "ipc.h" +#include "lib/ssl_client.h"  #include <signal.h>  #include <unistd.h>  #include <sys/time.h> @@ -53,6 +55,13 @@ int main( int argc, char *argv[], char **envp )  	b_main_init();  	nogaim_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 ); | 
