summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-30 15:32:58 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-02 08:45:22 +0200
commit0ba0306e2b2e877fb72da19ecf6aefd6a3ae9bee (patch)
tree58224d3b8b4aea94c0d138b9fdbcee66d40bb836
parentd9c85164c2e600bb52d7e9b5d9f0eb048e728c5f (diff)
downloadgnutls-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.c7
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));