diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-30 15:32:58 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-02 08:45:22 +0200 |
commit | 0ba0306e2b2e877fb72da19ecf6aefd6a3ae9bee (patch) | |
tree | 58224d3b8b4aea94c0d138b9fdbcee66d40bb836 | |
parent | d9c85164c2e600bb52d7e9b5d9f0eb048e728c5f (diff) | |
download | gnutls-0ba0306e2b2e877fb72da19ecf6aefd6a3ae9bee.tar.gz |
cli,serv: no longer print parameters when FFDHE groups are used
The negotiated RFC7919 group is now printed as part of the Description string,
and there is no reason to print more information on parameters defined by
the protocol.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | src/common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 762563cefd..86d4fd51ca 100644 --- a/src/common.c +++ b/src/common.c @@ -295,6 +295,13 @@ static void print_dh_info(gnutls_session_t session, const char *str, int print) { #if defined(ENABLE_DHE) || defined(ENABLE_ANON) + unsigned group; + + group = gnutls_group_get(session); + if (group != 0) { + return; + } + printf("- %sDiffie-Hellman parameters\n", str); printf(" - Using prime: %d bits\n", gnutls_dh_get_prime_bits(session)); |