Remove unused data from gnutls_certificate_details

* src/gnutls.c (gnutls_certificate_details): The :signature isn't
that useful, so remove it.
This commit is contained in:
Lars Magne Ingebrigtsen 2014-12-08 19:35:57 +01:00
parent 09e5e01605
commit 172bcf6f9f
2 changed files with 5 additions and 26 deletions

View 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

View 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;