@@ -84,6 +84,7 @@ static int bOptimizeUniProc = 1; /* enable uniprocessor optimizations */
84
84
static int bParseHOSTNAMEandTAG = 1 ; /* parser modification (based on startup params!) */
85
85
static int bPreserveFQDN = 0 ; /* should FQDNs always be preserved? */
86
86
static int iMaxLine = 8096 ; /* maximum length of a syslog message */
87
+ static int iGnuTLSLoglevel = 0 ;
87
88
static int iDefPFFamily = PF_UNSPEC ; /* protocol family (IPv4, IPv6 or both) */
88
89
static int bDropMalPTRMsgs = 0 ;/* Drop messages which have malicious PTR records during DNS lookup */
89
90
static int option_DisallowWarning = 1 ; /* complain if message from disallowed sender is received */
@@ -131,6 +132,7 @@ static struct cnfparamdescr cnfparamdescr[] = {
131
132
{ "preservefqdn" , eCmdHdlrBinary , 0 },
132
133
{ "debug.onshutdown" , eCmdHdlrBinary , 0 },
133
134
{ "debug.logfile" , eCmdHdlrString , 0 },
135
+ { "debug.gnutls" , eCmdHdlrPositiveInt , 0 },
134
136
{ "defaultnetstreamdrivercafile" , eCmdHdlrString , 0 },
135
137
{ "defaultnetstreamdriverkeyfile" , eCmdHdlrString , 0 },
136
138
{ "defaultnetstreamdrivercertfile" , eCmdHdlrString , 0 },
@@ -183,6 +185,12 @@ GetMaxLine(void)
183
185
return (iMaxLine );
184
186
}
185
187
188
+ int
189
+ GetGnuTLSLoglevel (void )
190
+ {
191
+ return (iGnuTLSLoglevel );
192
+ }
193
+
186
194
/* define a macro for the simple properties' set and get functions
187
195
* (which are always the same). This is only suitable for pretty
188
196
* simple cases which require neither checks nor memory allocation.
@@ -1040,6 +1048,8 @@ glblDoneLoadCnf(void)
1040
1048
} else if (!strcmp (paramblk .descr [i ].name , "debug.onshutdown" )) {
1041
1049
glblDebugOnShutdown = (int ) cnfparamvals [i ].val .d .n ;
1042
1050
errmsg .LogError (0 , RS_RET_OK , "debug: onShutdown set to %d" , glblDebugOnShutdown );
1051
+ } else if (!strcmp (paramblk .descr [i ].name , "debug.gnutls" )) {
1052
+ iGnuTLSLoglevel = (int ) cnfparamvals [i ].val .d .n ;
1043
1053
} else if (!strcmp (paramblk .descr [i ].name , "parser.controlcharacterescapeprefix" )) {
1044
1054
cCCEscapeChar = (uchar ) * es_str2cstr (cnfparamvals [i ].val .d .estr , NULL );
1045
1055
} else if (!strcmp (paramblk .descr [i ].name , "parser.droptrailinglfonreception" )) {
0 commit comments