2 Updated version of an earlier patch to make stunnel default to the
3 'authpriv' syslog facility, instead of daemon.
5 diff -ur stunnel-5.60.orig/doc/stunnel.8.in stunnel-5.60/doc/stunnel.8.in
6 --- stunnel-5.60.orig/doc/stunnel.8.in 2021-05-30 15:19:48.000000000 +0000
7 +++ stunnel-5.60/doc/stunnel.8.in 2021-11-19 00:11:36.690601036 +0000
9 all levels numerically less than it will be shown. Use \fIdebug = debug\fR or
10 \&\fIdebug = 7\fR for greatest debugging output. The default is notice (5).
12 -The syslog facility 'daemon' will be used unless a facility name is supplied.
13 +The syslog facility 'authpriv' will be used unless a facility name is supplied.
14 (Facilities are not supported on Win32.)
16 Case is ignored for both facilities and levels.
17 diff -ur stunnel-5.60.orig/doc/stunnel.html.in stunnel-5.60/doc/stunnel.html.in
18 --- stunnel-5.60.orig/doc/stunnel.html.in 2021-05-30 15:19:48.000000000 +0000
19 +++ stunnel-5.60/doc/stunnel.html.in 2021-11-19 00:12:08.301695748 +0000
22 <p>Level is one of the syslog level names or numbers emerg (0), alert (1), crit (2), err (3), warning (4), notice (5), info (6), or debug (7). All logs for the specified level and all levels numerically less than it will be shown. Use <i>debug = debug</i> or <i>debug = 7</i> for greatest debugging output. The default is notice (5).</p>
24 -<p>The syslog facility 'daemon' will be used unless a facility name is supplied. (Facilities are not supported on Win32.)</p>
25 +<p>The syslog facility 'authpriv' will be used unless a facility name is supplied. (Facilities are not supported on Win32.)</p>
27 <p>Case is ignored for both facilities and levels.</p>
29 diff -ur stunnel-5.60.orig/src/options.c stunnel-5.60/src/options.c
30 --- stunnel-5.60.orig/src/options.c 2021-08-05 02:19:52.000000000 +0000
31 +++ stunnel-5.60/src/options.c 2021-11-19 00:16:58.778393825 +0000
34 case CMD_SET_DEFAULTS:
35 section->log_level=LOG_NOTICE;
36 -#if !defined (USE_WIN32) && !defined (__vms)
37 +#if defined(__sun) && defined(__SVR4) && defined(LOG_AUTHPRIV)
38 + new_global_options.log_facility=LOG_AUTHPRIV;
39 +#elif !defined (USE_WIN32) && !defined (__vms)
40 new_global_options.log_facility=LOG_DAEMON;
43 @@ -1881,14 +1883,18 @@
46 case CMD_PRINT_DEFAULTS:
47 -#if !defined (USE_WIN32) && !defined (__vms)
48 +#if defined(__sun) && defined(__SVR4) && defined(LOG_AUTHPRIV)
49 + s_log(LOG_NOTICE, "%-22s = %s", "debug", "authpriv.notice");
50 +#elif !defined (USE_WIN32) && !defined (__vms)
51 s_log(LOG_NOTICE, "%-22s = %s", "debug", "daemon.notice");
53 s_log(LOG_NOTICE, "%-22s = %s", "debug", "notice");
57 -#if !defined (USE_WIN32) && !defined (__vms)
58 +#if defined(__sun) && defined(__SVR4) && defined(LOG_AUTHPRIV)
59 + s_log(LOG_NOTICE, "%-22s = [facility].level (e.g. authpriv.info)", "debug");
60 +#elif !defined (USE_WIN32) && !defined (__vms)
61 s_log(LOG_NOTICE, "%-22s = [facility].level (e.g. daemon.info)", "debug");
63 s_log(LOG_NOTICE, "%-22s = level (e.g. info)", "debug");