]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fgnutls_peer_status): Return the DH prime bits for the connection
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 8 Dec 2014 18:48:38 +0000 (19:48 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 8 Dec 2014 18:48:38 +0000 (19:48 +0100)
src/ChangeLog
src/gnutls.c

index 70b1bb001a9d901b13a36563b165ef43b919471e..b791d18bccb4da6863f2d99db9c850d205031422 100644 (file)
@@ -3,6 +3,8 @@
        * gnutls.c (gnutls_certificate_details): The :signature isn't
        that useful, so remove it.
        (gnutls_certificate_details): Clean up whitespace slightly.
+       (Fgnutls_peer_status): Return the Diffie-Hellman prime bits for
+       the connection.
 
 2014-12-07  Jan Djärv  <jan.h.d@swipnet.se>
 
index c4d85a2030e2a2b2832688c05ad2ccb990fe9465..2006bbcef0e1fa037d76342e6d01337837e7b1cc 100644 (file)
@@ -1029,6 +1029,15 @@ The return value is a property list with top-level keys :warnings and
                      (intern (":certificate"),
                       gnutls_certificate_details (XPROCESS (proc)->gnutls_certificate)));
 
+  /* Diffie-Hellman prime bits. */
+  {
+    int bits = gnutls_dh_get_prime_bits (XPROCESS (proc)->gnutls_state);
+    if (bits > 0)
+      result = nconc2 (result, list2
+                      (intern (":diffie-hellman-prime-bits"),
+                       make_number (bits)));
+  }
+
   return result;
 }