diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-25 19:07:25 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-25 19:07:25 +0200 |
commit | 6e1fed7057ee26f21b0e59a5aeb292d4f3f0e8ae (patch) | |
tree | fbd269e6515bb163f8c18ad00d1f03ca6b628de7 /unix.c | |
parent | 7ed3199067034b4fda4055778e02274f83bcfcb8 (diff) |
Using salted MD5 checksums for the user's BitlBee password and salted RC4
encryption for the IM account passwords, plus some calls to srand() to keep
the salts secure and unique.
Diffstat (limited to 'unix.c')
-rw-r--r-- | unix.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -47,20 +47,18 @@ int main( int argc, char *argv[], char **envp ) memset( &global, 0, sizeof( global_t ) ); b_main_init(); - log_init(); - nogaim_init(); - - CONF_FILE = g_strdup( CONF_FILE_DEF ); + srand( time( NULL ) ^ getpid() ); + + CONF_FILE = g_strdup( CONF_FILE_DEF ); global.helpfile = g_strdup( HELP_FILE ); - + global.conf = conf_load( argc, argv ); if( global.conf == NULL ) return( 1 ); - - + if( global.conf->runmode == RUNMODE_INETD ) { i = bitlbee_inetd_init(); @@ -88,7 +86,7 @@ int main( int argc, char *argv[], char **envp ) } if( i != 0 ) return( i ); - + global.storage = storage_init( global.conf->primary_storage, global.conf->migrate_storage ); if ( global.storage == NULL) { log_message( LOGLVL_ERROR, "Unable to load storage backend '%s'", global.conf->primary_storage ); |