diff options
-rw-r--r-- | src/cli.c | 9 | ||||
-rw-r--r-- | src/gnutls-cli-options.json | 7 |
2 files changed, 15 insertions, 1 deletions
@@ -1640,6 +1640,15 @@ static void cmd_parser(int argc, char **argv) exit(1); } + if (HAVE_OPT(LIST_CONFIG)) { + const gnutls_library_config_st *p; + + for (p = gnutls_get_library_config(); p->name; p++) { + log_msg(stdout, "%s: %s\n", p->name, p->value); + } + exit(0); + } + if (HAVE_OPT(BENCHMARK_CIPHERS)) { benchmark_cipher(OPT_VALUE_DEBUG); exit(0); diff --git a/src/gnutls-cli-options.json b/src/gnutls-cli-options.json index 0777e6b198..bffa18e365 100644 --- a/src/gnutls-cli-options.json +++ b/src/gnutls-cli-options.json @@ -387,6 +387,11 @@ "desc": "Reports the status of the FIPS140-2 mode in gnutls library" }, { + "detail": "", + "long-option": "list-config", + "desc": "Reports the configuration of the library" + }, + { "desc": "Redirect informational messages to a specific file.", "arg-type": "string", "long-option": "logfile", @@ -418,4 +423,4 @@ } ] } -]
\ No newline at end of file +] |