nextitem += length + skip;
}
}
+
+ if (!strcmp(p, "-sessionlog")) {
+ Filename *fn;
+ RETURN(2);
+ UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER);
+ /* but available even in TOOLTYPE_NONNETWORK, cf pterm "-log" */
+ SAVEABLE(0);
+ fn = filename_from_str(value);
+ conf_set_filename(conf, CONF_logfilename, fn);
+ conf_set_int(conf, CONF_logtype, LGTYP_DEBUG);
+ filename_free(fn);
+ }
+
+ if (!strcmp(p, "-sshlog") ||
+ !strcmp(p, "-sshrawlog")) {
+ Filename *fn;
+ RETURN(2);
+ UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
+ SAVEABLE(0);
+ fn = filename_from_str(value);
+ conf_set_filename(conf, CONF_logfilename, fn);
+ conf_set_int(conf, CONF_logtype,
+ !strcmp(p, "-sshlog") ? LGTYP_PACKETS :
+ /* !strcmp(p, "-sshrawlog") ? */ LGTYP_SSHRAW);
+ filename_free(fn);
+ }
+
+ if (!strcmp(p, "-proxycmd")) {
+ RETURN(2);
+ UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
+ SAVEABLE(0);
+ conf_set_int(conf, CONF_proxy_type, PROXY_CMD);
+ conf_set_str(conf, CONF_proxy_telnet_command, value);
+ }
+
+#ifdef _WINDOWS
+ /*
+ * Cross-tool options only available on Windows.
+ */
+ if (!strcmp(p, "-restrict-acl") || !strcmp(p, "-restrict_acl") ||
+ !strcmp(p, "-restrictacl")) {
+ RETURN(1);
+ restrict_process_acl();
+ restricted_acl = TRUE;
+ }
+#endif
+
return ret; /* unrecognised */
}