]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove unused data from gnutls_certificate_details
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 8 Dec 2014 18:35:57 +0000 (19:35 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 8 Dec 2014 18:35:57 +0000 (19:35 +0100)
* src/gnutls.c (gnutls_certificate_details): The :signature isn't
that useful, so remove it.

src/ChangeLog
src/gnutls.c

index 9cb9270e55dfd91baafb7619898e736f929f829b..0ed30a89dfa99fc39d1398655404374a0c9f7ad2 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnutls.c (gnutls_certificate_details): The :signature isn't
+       that useful, so remove it.
+
 2014-12-07  Jan Djärv  <jan.h.d@swipnet.se>
 
        * nsimage.m (setPixmapData): Make bmRep local so class member is not
index 7c61445de92d2c637180286fb0e2b70577570013..13730bd7a190ae6f4eb691263f16c830cb6a9904 100644 (file)
@@ -922,32 +922,6 @@ gnutls_certificate_details (gnutls_x509_crt_t cert)
   }
 #endif
 
-  /* Signature. */
-  {
-    size_t buf_size = 0;
-
-    err = fn_gnutls_x509_crt_get_signature_algorithm (cert);
-    if (err >= GNUTLS_E_SUCCESS)
-      {
-       const char *name = fn_gnutls_sign_get_name (err);
-       if (name)
-         res = nconc2 (res, list2 (intern (":signature-algorithm"),
-                                   build_string (name)));
-
-       err = fn_gnutls_x509_crt_get_signature (cert, NULL, &buf_size);
-       if (err == GNUTLS_E_SHORT_MEMORY_BUFFER)
-         {
-           char *buf = malloc (buf_size);
-           err = fn_gnutls_x509_crt_get_signature (cert, buf, &buf_size);
-           if (err >= GNUTLS_E_SUCCESS) {
-             res = nconc2 (res, list2 (intern (":signature"),
-                                       gnutls_hex_string (buf, buf_size, "")));
-           }
-           free (buf);
-         }
-      }
-  }
-
   /* Public key ID. */
   {
     size_t buf_size = 0;