diff options
author | Christian Pointner <equinox@anylike.org> | 2009-12-28 08:57:07 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anylike.org> | 2009-12-28 08:57:07 +0000 |
commit | 9e62362b3041569d907cbecee275b351baf1b5ef (patch) | |
tree | 9ff3ba7d693db23ac5902c6e86e39d61fe693d63 /src/anylike.c | |
parent | moved from libgcrypt to gnutls and from openssl crypto to openssl (diff) |
set gnutls log function
Diffstat (limited to 'src/anylike.c')
-rw-r--r-- | src/anylike.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/anylike.c b/src/anylike.c index 3d96b2d..70813de 100644 --- a/src/anylike.c +++ b/src/anylike.c @@ -49,6 +49,11 @@ #define MIN_GNUTLS_VERSION "2.8.3" +void gnutls_log_func(int level, const char* msg) +{ + log_printf(DEBUG, msg); // TODO: convert level to proper log priority +} + int init_gnutls() { int ret = gnutls_global_init(); @@ -63,6 +68,9 @@ int init_gnutls() return -1; } + gnutls_global_set_log_function(gnutls_log_func); + gnutls_global_set_log_level(11); // TODO: find a better level (this is very talky) + log_printf(NOTICE, "gnutls init finished"); return 0; } |