Skip to content

Commit

Permalink
* FIX [tls] Fix the type in command line arguments.
Browse files Browse the repository at this point in the history
Signed-off-by: wanghaemq <wangwei@emqx.io>
  • Loading branch information
wanghaEMQ committed Sep 8, 2023
1 parent c21a46f commit baecbb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nanomq_cli/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ help(enum client_type type)
#if defined(NNG_SUPP_TLS)
console(" -s, --secure Enable TLS/SSL mode\n");
console(
" --cacert <file> CA certificates file path\n");
" --cafile <file> CA certificates file path\n");
console(" -E, --cert <file> Certificate file path\n");
console(" --key <file> Private key file path\n");
console(" --keypass <key password> Private key password\n");
Expand Down Expand Up @@ -725,7 +725,7 @@ client_parse_opts(int argc, char **argv, client_opts *opt)
break;
case OPT_CACERT:
ASSERT_NULL(opt->cacert,
"CA Certificate (--cacert) may be "
"CA Certificate (--cafile) may be "
"specified only once.");
loadfile(
arg, (void **) &opt->cacert, &opt->cacert_len);
Expand Down

0 comments on commit baecbb9

Please sign in to comment.