X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=blobdiff_plain;f=src%2Ftlsproxy.c;h=b4beceaa2cd25f115196fad43a5737754494aa09;hp=cfd240f3569a1460f7f11badb0690c9f0294bb00;hb=23787d573fd2e4f31c1205f17c5d90fd5516a3fc;hpb=5c495b3f7f1e4553c7f8212675b212f2b2a6fdb2 diff --git a/src/tlsproxy.c b/src/tlsproxy.c index cfd240f..b4becea 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -364,6 +364,13 @@ static void print_usage(const char *argv) { fprintf(stderr, " WARNING: might be a security problem!\n"); } +#if 0 +static void log_function_gnutls(int level, const char *string) { + (void)level; + fprintf(stderr, " => %s", string); +} +#endif + static void initialize_gnutls(void) { int result; /* Recent versions of GnuTLS automatically initialize the cryptography layer @@ -391,6 +398,11 @@ static void initialize_gnutls(void) { result = gnutls_global_init(); GNUTLS_ERROR_EXIT(result, "gnutls_global_init()"); +#if 0 + gnutls_global_set_log_level(10); + gnutls_global_set_log_function(log_function_gnutls); +#endif + /* Setup GnuTLS cipher suites. */ result = gnutls_priority_init(&global_tls_priority_cache, "NORMAL", NULL); GNUTLS_ERROR_EXIT(result, "gnutls_priority_init()");