Skip to content
Snippets Groups Projects
Commit 63d72526 authored by rswindell's avatar rswindell
Browse files

Remove the conditional SSH (#ifdef USE_CRYPTLIB) stuff from the bbs thread

startup struct, causing problem with NT services. These fields are not
strictly reliant on cryptlib anyway.
parent 4602e2f9
No related branches found
No related tags found
No related merge requests found
......@@ -292,12 +292,10 @@ void sbbs_read_ini(
bbs->rlogin_port
=iniGetShortInt(list,section,"RLoginPort",513);
#ifdef USE_CRYPTLIB
bbs->ssh_interface
=iniGetIpAddress(list,section,"SSHInterface",global->interface_addr);
bbs->ssh_port
=iniGetShortInt(list,section,"SSHPort",22);
#endif
bbs->first_node
=iniGetShortInt(list,section,"FirstNode",1);
......@@ -738,14 +736,12 @@ BOOL sbbs_write_ini(
if(!iniSetShortInt(lp,section,"RLoginPort",bbs->rlogin_port,&style))
break;
#ifdef USE_CRYPTLIB
if(bbs->ssh_interface==global->interface_addr)
iniRemoveValue(lp,section,"SSHInterface");
else if(!iniSetIpAddress(lp,section,"SSHInterface",bbs->ssh_interface,&style))
break;
if(!iniSetShortInt(lp,section,"SSHPort",bbs->ssh_port,&style))
break;
#endif
if(!iniSetShortInt(lp,section,"FirstNode",bbs->first_node,&style))
break;
......
......@@ -75,18 +75,14 @@ typedef struct {
WORD last_node;
WORD telnet_port;
WORD rlogin_port;
#ifdef USE_CRYPTLIB
WORD ssh_port;
#endif
WORD outbuf_highwater_mark; /* output block size control */
WORD outbuf_drain_timeout;
WORD sem_chk_freq; /* semaphore file checking frequency (in seconds) */
DWORD telnet_interface;
DWORD options; /* See BBS_OPT definitions */
DWORD rlogin_interface;
#ifdef USE_CRYPTLIB
DWORD ssh_interface;
#endif
RingBuf** node_spybuf; /* Spy output buffer (each node) */
RingBuf** node_inbuf; /* User input buffer (each node) */
sem_t** node_spysem; /* Spy output semaphore (each node) */
......@@ -160,9 +156,7 @@ static struct init_field {
#define BBS_OPT_NO_EVENTS (1<<9) /* Don't run event thread */
#define BBS_OPT_NO_SPY_SOCKETS (1<<10) /* Don't create spy sockets */
#define BBS_OPT_NO_HOST_LOOKUP (1<<11)
#ifdef USE_CRYPTLIB
#define BBS_OPT_ALLOW_SSH (1<<26) /* Allow logins via BSD SSH */
#endif
#define BBS_OPT_ALLOW_SSH (1<<12) /* Allow logins via BSD SSH */
#define BBS_OPT_NO_RECYCLE (1<<27) /* Disable recycling of server */
#define BBS_OPT_GET_IDENT (1<<28) /* Get Identity (RFC 1413) */
#define BBS_OPT_NO_JAVASCRIPT (1<<29) /* JavaScript disabled */
......@@ -170,13 +164,8 @@ static struct init_field {
#define BBS_OPT_MUTE (1<<31) /* Mute sounds */
/* bbs_startup_t.options bits that require re-init/recycle when changed */
#ifdef USE_CRYPTLIB
#define BBS_INIT_OPTS (BBS_OPT_ALLOW_RLOGIN|BBS_OPT_ALLOW_SSH|BBS_OPT_NO_EVENTS|BBS_OPT_NO_SPY_SOCKETS \
|BBS_OPT_NO_JAVASCRIPT|BBS_OPT_LOCAL_TIMEZONE)
#else
#define BBS_INIT_OPTS (BBS_OPT_ALLOW_RLOGIN|BBS_OPT_NO_EVENTS|BBS_OPT_NO_SPY_SOCKETS \
|BBS_OPT_NO_JAVASCRIPT|BBS_OPT_LOCAL_TIMEZONE)
#endif
#if defined(STARTUP_INI_BITDESC_TABLES)
static ini_bitdesc_t bbs_options[] = {
......@@ -192,9 +181,7 @@ static ini_bitdesc_t bbs_options[] = {
{ BBS_OPT_NO_EVENTS ,"NO_EVENTS" },
{ BBS_OPT_NO_HOST_LOOKUP ,"NO_HOST_LOOKUP" },
{ BBS_OPT_NO_SPY_SOCKETS ,"NO_SPY_SOCKETS" },
#ifdef USE_CRYPTLIB
{ BBS_OPT_ALLOW_SSH ,"ALLOW_SSH" },
#endif
{ BBS_OPT_ALLOW_SSH ,"ALLOW_SSH" },
{ BBS_OPT_NO_RECYCLE ,"NO_RECYCLE" },
{ BBS_OPT_GET_IDENT ,"GET_IDENT" },
{ BBS_OPT_NO_JAVASCRIPT ,"NO_JAVASCRIPT" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment