diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-01-23 20:55:37 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-01-23 20:55:37 +0000 |
commit | 275d4fdee055765fd2c035206968f9b1ef22cd56 (patch) | |
tree | 011cb61d62d6c2ce3919ab86d4d7577b3b75a06c /src | |
parent | d9ddd249e85eb2258172d1460d9dc46f9cbfca23 (diff) | |
download | gnutls-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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"); |