Skip to content

Commit

Permalink
Command line options to enable handshake obfuscation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Leidl committed Jul 1, 2009
1 parent 6a6a06c commit 69c6d51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scp.c
Expand Up @@ -323,20 +323,22 @@ main(int argc, char **argv)
addargs(&args, "-oClearAllForwardings yes");

fflag = tflag = 0;
while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:")) != -1)
while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:zZ:")) != -1)
switch (ch) {
/* User-visible flags. */
case '1':
case '2':
case '4':
case '6':
case 'C':
case 'z':
addargs(&args, "-%c", ch);
break;
case 'o':
case 'c':
case 'i':
case 'F':
case 'Z':
addargs(&args, "-%c%s", ch, optarg);
break;
case 'P':
Expand Down
6 changes: 4 additions & 2 deletions sftp.c
Expand Up @@ -1705,10 +1705,11 @@ main(int argc, char **argv)
ll = SYSLOG_LEVEL_INFO;
infile = stdin;

while ((ch = getopt(argc, argv, "1hvCo:s:S:b:B:F:P:R:")) != -1) {
while ((ch = getopt(argc, argv, "1hvCo:s:S:b:B:F:P:R:zZ:")) != -1) {
switch (ch) {
case 'C':
addargs(&args, "-C");
case 'z':
addargs(&args, "-%c", ch);
break;
case 'v':
if (debug_level < 3) {
Expand All @@ -1719,6 +1720,7 @@ main(int argc, char **argv)
break;
case 'F':
case 'o':
case 'Z':
addargs(&args, "-%c%s", ch, optarg);
break;
case '1':
Expand Down

0 comments on commit 69c6d51

Please sign in to comment.