aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/tls/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/https/tls/debug.c')
-rw-r--r--src/daemon/https/tls/debug.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/daemon/https/tls/debug.c b/src/daemon/https/tls/debug.c
index b7408e39..ac657504 100644
--- a/src/daemon/https/tls/debug.c
+++ b/src/daemon/https/tls/debug.c
@@ -37,13 +37,15 @@ MHD__gnutls_print_state (MHD_gtls_session_t session)
37 37
38 MHD__gnutls_debug_log ("GNUTLS State:\n"); 38 MHD__gnutls_debug_log ("GNUTLS State:\n");
39 MHD__gnutls_debug_log ("Connection End: %d\n", 39 MHD__gnutls_debug_log ("Connection End: %d\n",
40 session->security_parameters.entity); 40 session->security_parameters.entity);
41 MHD__gnutls_debug_log ("Cipher Algorithm: %d\n", 41 MHD__gnutls_debug_log ("Cipher Algorithm: %d\n",
42 session->security_parameters.read_bulk_cipher_algorithm); 42 session->security_parameters.
43 read_bulk_cipher_algorithm);
43 MHD__gnutls_debug_log ("MAC algorithm: %d\n", 44 MHD__gnutls_debug_log ("MAC algorithm: %d\n",
44 session->security_parameters.read_mac_algorithm); 45 session->security_parameters.read_mac_algorithm);
45 MHD__gnutls_debug_log ("Compression Algorithm: %d\n", 46 MHD__gnutls_debug_log ("Compression Algorithm: %d\n",
46 session->security_parameters.read_compression_algorithm); 47 session->security_parameters.
48 read_compression_algorithm);
47 MHD__gnutls_debug_log ("\n"); 49 MHD__gnutls_debug_log ("\n");
48 50
49} 51}
@@ -123,6 +125,7 @@ MHD__gnutls_dump_mpi (const char *prefix, mpi_t a)
123 size_t n = sizeof buf; 125 size_t n = sizeof buf;
124 126
125 if (gcry_mpi_print (GCRYMPI_FMT_HEX, buf, n, &n, a)) 127 if (gcry_mpi_print (GCRYMPI_FMT_HEX, buf, n, &n, a))
126 strcpy ((char*) buf, "[can't print value]"); /* Flawfinder: ignore */ 128 strcpy ((char *) buf, "[can't print value]"); /* Flawfinder: ignore */
127 MHD__gnutls_hard_log ("MPI: length: %d\n\t%s%s\n", (n - 1) / 2, prefix, buf); 129 MHD__gnutls_hard_log ("MPI: length: %d\n\t%s%s\n", (n - 1) / 2, prefix,
130 buf);
128} 131}