StringParameter CSecurityTLS::X509CRL("X509CRL", "X509 CRL file", "", ConfViewer);
static LogWriter vlog("TLS");
-static LogWriter vlog_raw("RawTLS");
-
-static void debug_log(int level, const char* str)
-{
- vlog_raw.debug("[%d]: %s", level, str);
-}
void CSecurityTLS::initGlobal()
{
if (!globalInitDone) {
gnutls_global_init();
-
- /* 100 means debug log */
- if (vlog_raw.getLevel() >= 100) {
- gnutls_global_set_log_level(10);
- gnutls_global_set_log_function(debug_log);
- }
-
globalInitDone = true;
}
}
("X509Key", "Path to the key of the X509 certificate in PEM format", "", ConfServer);
static LogWriter vlog("TLS");
-static LogWriter vlog_raw("RawTLS");
-
-static void debug_log(int level, const char* str)
-{
- vlog.debug("[%d]: %s", level, str);
-}
void SSecurityTLS::initGlobal()
{
if (!globalInitDone) {
if (gnutls_global_init() != GNUTLS_E_SUCCESS)
throw AuthFailureException("gnutls_global_init failed");
-
- /* 100 means debug log */
- if (vlog_raw.getLevel() >= 100) {
- gnutls_global_set_log_level(10);
- gnutls_global_set_log_function(debug_log);
- }
-
globalInitDone = true;
}
}