summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/cli.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index 2b888c0371..cd162f85d9 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -568,6 +568,11 @@ int do_handshake(socket_st* socket)
return ret;
}
+static void tls_log_func( const char* str)
+{
+ fprintf(stderr, "|** %s", str);
+}
+
void init_global_tls_stuff()
{
int ret;
@@ -576,6 +581,7 @@ int ret;
fprintf(stderr, "global state initialization error\n");
exit(1);
}
+ gnutls_global_set_log_function( tls_log_func);
if (gnutls_global_init_extra() < 0) {
fprintf(stderr, "global state (extra) initialization error\n");