@@ -84,6 +84,7 @@ static int bOptimizeUniProc = 1; /* enable uniprocessor optimizations */
8484static int bParseHOSTNAMEandTAG = 1 ; /* parser modification (based on startup params!) */
8585static int bPreserveFQDN = 0 ; /* should FQDNs always be preserved? */
8686static int iMaxLine = 8096 ; /* maximum length of a syslog message */
87+ static int iGnuTLSLoglevel = 0 ;
8788static int iDefPFFamily = PF_UNSPEC ; /* protocol family (IPv4, IPv6 or both) */
8889static int bDropMalPTRMsgs = 0 ;/* Drop messages which have malicious PTR records during DNS lookup */
8990static int option_DisallowWarning = 1 ; /* complain if message from disallowed sender is received */
@@ -131,6 +132,7 @@ static struct cnfparamdescr cnfparamdescr[] = {
131132 { "preservefqdn" , eCmdHdlrBinary , 0 },
132133 { "debug.onshutdown" , eCmdHdlrBinary , 0 },
133134 { "debug.logfile" , eCmdHdlrString , 0 },
135+ { "debug.gnutls" , eCmdHdlrPositiveInt , 0 },
134136 { "defaultnetstreamdrivercafile" , eCmdHdlrString , 0 },
135137 { "defaultnetstreamdriverkeyfile" , eCmdHdlrString , 0 },
136138 { "defaultnetstreamdrivercertfile" , eCmdHdlrString , 0 },
@@ -183,6 +185,12 @@ GetMaxLine(void)
183185 return (iMaxLine );
184186}
185187
188+ int
189+ GetGnuTLSLoglevel (void )
190+ {
191+ return (iGnuTLSLoglevel );
192+ }
193+
186194/* define a macro for the simple properties' set and get functions
187195 * (which are always the same). This is only suitable for pretty
188196 * simple cases which require neither checks nor memory allocation.
@@ -1040,6 +1048,8 @@ glblDoneLoadCnf(void)
10401048 } else if (!strcmp (paramblk .descr [i ].name , "debug.onshutdown" )) {
10411049 glblDebugOnShutdown = (int ) cnfparamvals [i ].val .d .n ;
10421050 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 ;
10431053 } else if (!strcmp (paramblk .descr [i ].name , "parser.controlcharacterescapeprefix" )) {
10441054 cCCEscapeChar = (uchar ) * es_str2cstr (cnfparamvals [i ].val .d .estr , NULL );
10451055 } else if (!strcmp (paramblk .descr [i ].name , "parser.droptrailinglfonreception" )) {
0 commit comments