summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-26 17:50:33 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-04 09:38:27 +0200
commitc11cc4cf99b2003bf8173e42339585477f1ce01d (patch)
tree5f372c4c9fc95c1a8c27be094705a0e1ad2c6041
parent901d88e86eab62d8cffc9f8e9c50a6e3d1b5f3b9 (diff)
downloadgnutls-c11cc4cf99b2003bf8173e42339585477f1ce01d.tar.gz
x509/sign: in debugging mode print the signature algorithm
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/x509/sign.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/x509/sign.c b/lib/x509/sign.c
index c081a92c00..13a1b52644 100644
--- a/lib/x509/sign.c
+++ b/lib/x509/sign.c
@@ -158,6 +158,8 @@ _gnutls_x509_pkix_sign(ASN1_TYPE src, const char *src_name,
if (se == NULL)
return gnutls_assert_val(GNUTLS_E_UNSUPPORTED_SIGNATURE_ALGORITHM);
+ _gnutls_debug_log("signing structure using %s\n", se->name);
+
result = _gnutls_x509_write_sign_params(src, name, se, &params);
if (result < 0) {
gnutls_assert();