Skip to content
Snippets Groups Projects
Commit 96ec1645 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Put the 2 SFTP related options next to each other (duh)

parent c53371f5
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -399,10 +399,10 @@ static void ssh_srvr_cfg(bbs_startup_t* startup)
,startup->options & BBS_OPT_ALLOW_SSH ? vduration(startup->ssh_connect_timeout) : "N/A");
snprintf(opt[i++], MAX_OPLN, "%-30s%s", "Error Level"
,startup->options & BBS_OPT_ALLOW_SSH ? iniLogLevelStringList()[startup->ssh_error_level] : "N/A");
snprintf(opt[i++], MAX_OPLN, "%-30s%s", "File Transfer (SFTP) Support"
,startup->options & BBS_OPT_ALLOW_SSH ? (startup->options & BBS_OPT_ALLOW_SFTP ? "Yes" : "No") : "N/A");
snprintf(opt[i++], MAX_OPLN, "%-30s%s", "User Authentication Type"
,startup->options & BBS_OPT_ALLOW_SSH ? (startup->options & BBS_OPT_SSH_ANYAUTH ? "Any" : "Valid Key or Username") : "N/A");
snprintf(opt[i++], MAX_OPLN, "%-30s%s", "File Transfer (SFTP) Support"
,startup->options & BBS_OPT_ALLOW_SSH ? (startup->options & BBS_OPT_ALLOW_SFTP ? "Yes" : "No") : "N/A");
snprintf(opt[i++], MAX_OPLN, "%-30s%s", "Max SFTP Inactivity"
,(startup->options & BBS_OPT_ALLOW_SSH) && (startup->options & BBS_OPT_ALLOW_SFTP) ? vduration(startup->max_sftp_inactivity) : "N/A");
......@@ -445,12 +445,12 @@ static void ssh_srvr_cfg(bbs_startup_t* startup)
case 5:
if(!(startup->options & BBS_OPT_ALLOW_SSH))
break;
startup->options ^= BBS_OPT_ALLOW_SFTP;
startup->options ^= BBS_OPT_SSH_ANYAUTH;
break;
case 6:
if(!(startup->options & BBS_OPT_ALLOW_SSH))
break;
startup->options ^= BBS_OPT_SSH_ANYAUTH;
startup->options ^= BBS_OPT_ALLOW_SFTP;
break;
case 7:
if(!(startup->options & BBS_OPT_ALLOW_SSH))
......
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