aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/gnutls.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b791d18bccb..e4ba2c9d6b6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,6 +5,8 @@
5 (gnutls_certificate_details): Clean up whitespace slightly. 5 (gnutls_certificate_details): Clean up whitespace slightly.
6 (Fgnutls_peer_status): Return the Diffie-Hellman prime bits for 6 (Fgnutls_peer_status): Return the Diffie-Hellman prime bits for
7 the connection. 7 the connection.
8 (gnutls_certificate_details): Put :signature-algorithm back again,
9 which was removed by mistake.
8 10
92014-12-07 Jan Djärv <jan.h.d@swipnet.se> 112014-12-07 Jan Djärv <jan.h.d@swipnet.se>
10 12
diff --git a/src/gnutls.c b/src/gnutls.c
index 2006bbcef0e..3893f4d3dfa 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -910,6 +910,16 @@ gnutls_certificate_details (gnutls_x509_crt_t cert)
910 } 910 }
911#endif 911#endif
912 912
913 /* Signature. */
914 err = fn_gnutls_x509_crt_get_signature_algorithm (cert);
915 if (err >= GNUTLS_E_SUCCESS)
916 {
917 const char *name = fn_gnutls_sign_get_name (err);
918 if (name)
919 res = nconc2 (res, list2 (intern (":signature-algorithm"),
920 build_string (name)));
921 }
922
913 /* Public key ID. */ 923 /* Public key ID. */
914 buf_size = 0; 924 buf_size = 0;
915 err = fn_gnutls_x509_crt_get_key_id (cert, 0, NULL, &buf_size); 925 err = fn_gnutls_x509_crt_get_key_id (cert, 0, NULL, &buf_size);