diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-12-02 21:13:13 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-12-02 21:13:13 +0900 |
commit | 03b857b51a53763ce4fecff935bd98f79aae77db (patch) | |
tree | 4c7285061b9b64bae5bc19c1f1390eb8aa227222 /src/main.c | |
parent | d646fc1f894e1a408cba0a31a35901ac78ab4de3 (diff) |
add -M hmac option
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -82,7 +82,7 @@ void usage(bool print_help) { " [-b sftp_buf_sz] [-B io_buf_sz] \n" #endif " [-l login_name] [-p port] [-i identity_file]\n" - " [-c cipher_spec] source ... target\n" + " [-c cipher_spec] [-M hmac_spec] source ... target\n" "\n"); if (!print_help) @@ -109,7 +109,8 @@ void usage(bool print_help) { " -l LOGIN_NAME login name\n" " -p PORT port number\n" " -i IDENTITY identity file for public key authentication\n" - " -c CIPHER cipher spec, see `ssh -Q cipher`\n" + " -c CIPHER cipher spec\n" + " -M HMAC hmac spec\n" " -C enable compression on libssh\n" " -H disable hostkey check\n" " -d increment ssh debug output level\n" @@ -242,7 +243,7 @@ int main(int argc, char **argv) m.nr_threads = (int)(nr_cpus() / 2); m.nr_threads = m.nr_threads == 0 ? 1 : m.nr_threads; - while ((ch = getopt(argc, argv, "n:m:s:S:b:B:a:vqDl:p:i:c:CHdh")) != -1) { + while ((ch = getopt(argc, argv, "n:m:s:S:b:B:a:vqDl:p:i:c:M:CHdh")) != -1) { switch (ch) { case 'n': m.nr_threads = atoi(optarg); @@ -326,6 +327,9 @@ int main(int argc, char **argv) case 'c': opts.cipher = optarg; break; + case 'M': + opts.hmac = optarg; + break; case 'C': opts.compress++; break; |