]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
cli,serv: no longer print parameters when FFDHE groups are used
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 30 Jun 2017 13:32:58 +0000 (15:32 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 2 Aug 2017 06:45:22 +0000 (08:45 +0200)
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>
src/common.c

index 762563cefdfdc83cce2eb32bf5d5b2621fb88d92..86d4fd51caaf578ad050ef7fced00860a5f7fec5 100644 (file)
@@ -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));