--- sbbs/src/sbbs3/ftpsrvr.h 2018/04/24 16:41:24 1.1 +++ sbbs/src/sbbs3/ftpsrvr.h 2018/04/24 16:43:50 1.1.1.2 @@ -2,13 +2,13 @@ /* Synchronet FTP server */ -/* $Id: ftpsrvr.h,v 1.1 2018/04/24 16:41:24 root Exp $ */ +/* $Id: ftpsrvr.h,v 1.1.1.2 2018/04/24 16:43:50 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -57,8 +57,9 @@ typedef struct { void* cbdata; /* Private data passed to callbacks */ /* Callbacks (NULL if unused) */ - int (*lputs)(void*, int, char*); - void (*status)(void*, char*); + int (*lputs)(void*, int level, const char* msg); + void (*errormsg)(void*, int level, const char* msg); + void (*status)(void*, const char*); void (*started)(void*); void (*recycle)(void*); void (*terminated)(void*, int code); @@ -90,6 +91,13 @@ typedef struct { /* JavaScript operating parameters */ js_startup_t js; + /* Login Attempt parameters */ + ulong login_attempt_delay; + ulong login_attempt_throttle; + ulong login_attempt_hack_threshold; + ulong login_attempt_filter_threshold; + link_list_t* login_attempt_list; + } ftp_startup_t; /* startup options that requires re-initialization/recycle when changed */ @@ -116,11 +124,10 @@ static struct init_field ftp_init_fields #define FTP_OPT_NO_HOST_LOOKUP (1<<11) #define FTP_OPT_NO_RECYCLE (1<<27) /* Disable recycling of server */ #define FTP_OPT_NO_JAVASCRIPT (1<<29) /* JavaScript disabled */ -#define FTP_OPT_LOCAL_TIMEZONE (1<<30) /* Don't force UTC/GMT */ #define FTP_OPT_MUTE (1<<31) /* ftp_startup_t.options bits that require re-init/recycle when changed */ -#define FTP_INIT_OPTS (FTP_OPT_LOCAL_TIMEZONE) +#define FTP_INIT_OPTS (0) #if defined(STARTUP_INI_BITDESC_TABLES) static ini_bitdesc_t ftp_options[] = { @@ -138,7 +145,6 @@ static ini_bitdesc_t ftp_options[] = { { FTP_OPT_NO_HOST_LOOKUP ,"NO_HOST_LOOKUP" }, { FTP_OPT_NO_RECYCLE ,"NO_RECYCLE" }, { FTP_OPT_NO_JAVASCRIPT ,"NO_JAVASCRIPT" }, - { FTP_OPT_LOCAL_TIMEZONE ,"LOCAL_TIMEZONE" }, { FTP_OPT_MUTE ,"MUTE" }, /* terminator */ { 0 ,NULL }