summaryrefslogtreecommitdiff
path: root/lib/debug.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-01-23 20:55:37 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-01-23 20:55:37 +0000
commit275d4fdee055765fd2c035206968f9b1ef22cd56 (patch)
tree011cb61d62d6c2ce3919ab86d4d7577b3b75a06c /lib/debug.c
parentd9ddd249e85eb2258172d1460d9dc46f9cbfca23 (diff)
downloadgnutls-275d4fdee055765fd2c035206968f9b1ef22cd56.tar.gz
Added ability to send some messages back to the application using
the gnutls_global_set_log_function(). This is quite experimental.
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/debug.c b/lib/debug.c
index 96a6c32fba..7c5028c3db 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -33,7 +33,7 @@ void _gnutls_dump_mpi(char* prefix, GNUTLS_MPI a)
if (gcry_mpi_print(GCRYMPI_FMT_HEX, buf, &n, a))
strcpy(buf, "[can't print value]"); /* Flawfinder: ignore */
- _gnutls_log( "GNUTLS_MPI: length: %d\n\t%s%s\n", (n-1)/2, prefix, buf);
+ _gnutls_debug_log( "GNUTLS_MPI: length: %d\n\t%s%s\n", (n-1)/2, prefix, buf);
}
@@ -58,16 +58,16 @@ char *_gnutls_bin2hex(const unsigned char *old, const size_t oldlen)
void _gnutls_print_state(gnutls_session session)
{
- _gnutls_log( "GNUTLS State:\n");
- _gnutls_log( "Connection End: %d\n",
+ _gnutls_debug_log( "GNUTLS State:\n");
+ _gnutls_debug_log( "Connection End: %d\n",
session->security_parameters.entity);
- _gnutls_log( "Cipher Algorithm: %d\n",
+ _gnutls_debug_log( "Cipher Algorithm: %d\n",
session->security_parameters.read_bulk_cipher_algorithm);
- _gnutls_log( "MAC algorithm: %d\n",
+ _gnutls_debug_log( "MAC algorithm: %d\n",
session->security_parameters.read_mac_algorithm);
- _gnutls_log( "Compression Algorithm: %d\n",
+ _gnutls_debug_log( "Compression Algorithm: %d\n",
session->security_parameters.read_compression_algorithm);
- _gnutls_log( "\n");
+ _gnutls_debug_log( "\n");
}