From 172bcf6f9f9ed99e59fba2c2e6c46f18a24d2ab4 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Mon, 8 Dec 2014 19:35:57 +0100 Subject: [PATCH] Remove unused data from gnutls_certificate_details * src/gnutls.c (gnutls_certificate_details): The :signature isn't that useful, so remove it. --- src/ChangeLog | 5 +++++ src/gnutls.c | 26 -------------------------- 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9cb9270e55d..0ed30a89dfa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-12-08 Lars Magne Ingebrigtsen + + * gnutls.c (gnutls_certificate_details): The :signature isn't + that useful, so remove it. + 2014-12-07 Jan Djärv * nsimage.m (setPixmapData): Make bmRep local so class member is not diff --git a/src/gnutls.c b/src/gnutls.c index 7c61445de92..13730bd7a19 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -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; -- 2.39.2