From 8a5f0141a346ad4b94d09313a2ec9a52efa7cf59 Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Tue, 12 Oct 2004 00:07:33 +0200 Subject: v0.5.5 - Added: rsa key generation by afclient - Modified: afclient is now generating keys by default - Fixed: major bug in packet buffering - Added: 'timeout', 'clients' and 'usrpcli' options - Fixed: parsing 'users' option - Modified: module management routines - Added: module support for service's packet filtering - Fixed: few minor bugs in closing connection routines - Added: possibility to use several clients per realm - Modified: there is no need for 'users', 'timeout', 'clients', 'proto', 'usrpcli' and 'climode' options in config file when default values are acceptable --- file.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'file.c') diff --git a/file.c b/file.c index d3712ea..59ff7ba 100644 --- a/file.c +++ b/file.c @@ -158,6 +158,22 @@ parsefile(char* name, int* status) cfg.realmtable[cfg.size-1].users = calloc(strlen(helpbuf2)+1, sizeof(char)); strcpy(cfg.realmtable[cfg.size-1].users, helpbuf2); } + else if (strcmp(helpbuf1, "timeout")==0) { + cfg.realmtable[cfg.size-1].timeout = calloc(strlen(helpbuf2)+1, sizeof(char)); + strcpy(cfg.realmtable[cfg.size-1].timeout, helpbuf2); + } + else if (strcmp(helpbuf1, "clients")==0) { + cfg.realmtable[cfg.size-1].clients = calloc(strlen(helpbuf2)+1, sizeof(char)); + strcpy(cfg.realmtable[cfg.size-1].clients, helpbuf2); + } + else if (strcmp(helpbuf1, "usrpcli")==0) { + cfg.realmtable[cfg.size-1].usrpcli = calloc(strlen(helpbuf2)+1, sizeof(char)); + strcpy(cfg.realmtable[cfg.size-1].usrpcli, helpbuf2); + } + else if (strcmp(helpbuf1, "climode")==0) { + cfg.realmtable[cfg.size-1].clim = calloc(strlen(helpbuf2)+1, sizeof(char)); + strcpy(cfg.realmtable[cfg.size-1].clim, helpbuf2); + } else if (strcmp(helpbuf1, "proto")==0) { if (TYPE_IS_SET(cfg.realmtable[cfg.size-1].type)) { return cfg; -- cgit v1.1