SilcClient silc_client = NULL;
SilcClientConfig silc_config = NULL;
extern SilcClientOperations ops;
-extern int silc_debug;
+extern bool silc_debug;
+extern bool silc_debug_hexdump;
#ifdef SILC_SIM
/* SIM (SILC Module) table */
SilcSimContext **sims = NULL;
static int my_silc_scheduler(void)
{
- silc_schedule_one(silc_client->schedule, 0);
+ silc_client_run_one(silc_client);
return 1;
}
{ "list-pkcs", 'P', POPT_ARG_NONE, &opt_list_pkcs, 0,
"List supported PKCSs", NULL },
{ "debug", 'd', POPT_ARG_STRING, &opt_debug, 0,
- "Enable debugging", NULL },
+ "Enable debugging", "STRING" },
{ "version", 'V', POPT_ARG_NONE, &opt_version, 0,
"Show version", NULL },
{ NULL, '\0', 0, NULL }
if (opt_debug) {
silc_debug = TRUE;
+ silc_debug_hexdump = TRUE;
silc_log_set_debug_string(opt_debug);
silc_log_set_callbacks(silc_log_info, silc_log_warning,
silc_log_error, NULL);
+#ifndef SILC_DEBUG
+ fprintf(stdout,
+ "Run-time debugging is not enabled. To enable it recompile\n"
+ "the client with --enable-debug configuration option.\n");
+#endif
}
/* Do some irssi initializing */