ERR("gnutls returned with error: %s - %s", gnutls_strerror_name(ret), gnutls_strerror(ret));
}
+#ifdef ISCOMFITOR
static void
_gnutls_log_func(int level,
const char *str)
{
DBG("|<%d>| %s", level, str);
}
+#endif
static const char *
SSL_GNUTLS_PRINT_HANDSHAKE_STATUS(gnutls_handshake_description_t status)
#endif
if (gnutls_global_init())
return ECORE_CON_SSL_ERROR_INIT_FAILED;
+
+#ifdef ISCOMFITOR
gnutls_global_set_log_level(9);
gnutls_global_set_log_function(_gnutls_log_func);
-
+#endif
return ECORE_CON_SSL_ERROR_NONE;
}
break;
}
+#ifdef ISCOMFITOR
{
/* print session info into DBG */
SSL_SESSION *s;
BIO_free(b);
}
-
+#endif
if (!svr->verify)
/* not verifying certificates, so we're done! */
return ECORE_CON_SSL_ERROR_NONE;
break;
}
+#ifdef ISCOMFITOR
{
/* print session info into DBG */
SSL_SESSION *s;
BIO_free(b);
}
+#endif
if (!cl->host_server->verify)
/* not verifying certificates, so we're done! */