Blame SOURCES/stunnel-5.50-authpriv.patch

a776bd
diff -up stunnel-5.50/doc/stunnel.8.in.authpriv stunnel-5.50/doc/stunnel.8.in
a776bd
--- stunnel-5.50/doc/stunnel.8.in.authpriv	2018-12-02 23:47:20.000000000 +0100
a776bd
+++ stunnel-5.50/doc/stunnel.8.in	2019-01-14 12:15:05.135100163 +0100
a776bd
@@ -200,7 +200,7 @@ info (6), or debug (7).  All logs for th
a776bd
 all levels numerically less than it will be shown.  Use \fIdebug = debug\fR or
a776bd
 \&\fIdebug = 7\fR for greatest debugging output.  The default is notice (5).
a776bd
 .Sp
a776bd
-The syslog facility 'daemon' will be used unless a facility name is supplied.
a776bd
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
a776bd
 (Facilities are not supported on Win32.)
a776bd
 .Sp
a776bd
 Case is ignored for both facilities and levels.
a776bd
diff -up stunnel-5.50/doc/stunnel.html.in.authpriv stunnel-5.50/doc/stunnel.html.in
a776bd
--- stunnel-5.50/doc/stunnel.html.in.authpriv	2018-12-02 23:47:21.000000000 +0100
a776bd
+++ stunnel-5.50/doc/stunnel.html.in	2019-01-14 12:15:05.136100146 +0100
a776bd
@@ -244,7 +244,7 @@
a776bd
 
a776bd
 

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 debug = debug or debug = 7 for greatest debugging output. The default is notice (5).

a776bd
 
a776bd
-

The syslog facility 'daemon' will be used unless a facility name is supplied. (Facilities are not supported on Win32.)

a776bd
+

The syslog facility 'authpriv' will be used unless a facility name is supplied. (Facilities are not supported on Win32.)

a776bd
 
a776bd
 

Case is ignored for both facilities and levels.

a776bd
 
a776bd
diff -up stunnel-5.50/doc/stunnel.pod.in.authpriv stunnel-5.50/doc/stunnel.pod.in
a776bd
--- stunnel-5.50/doc/stunnel.pod.in.authpriv	2018-12-02 23:47:18.000000000 +0100
a776bd
+++ stunnel-5.50/doc/stunnel.pod.in	2019-01-14 12:15:05.136100146 +0100
a776bd
@@ -192,7 +192,7 @@ info (6), or debug (7).  All logs for th
a776bd
 all levels numerically less than it will be shown.  Use I<debug = debug> or
a776bd
 I<debug = 7> for greatest debugging output.  The default is notice (5).
a776bd
 
a776bd
-The syslog facility 'daemon' will be used unless a facility name is supplied.
a776bd
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
a776bd
 (Facilities are not supported on Win32.)
a776bd
 
a776bd
 Case is ignored for both facilities and levels.
a776bd
diff -up stunnel-5.50/src/options.c.authpriv stunnel-5.50/src/options.c
a776bd
--- stunnel-5.50/src/options.c.authpriv	2019-01-14 12:15:05.136100146 +0100
a776bd
+++ stunnel-5.50/src/options.c	2019-01-14 12:16:25.537727511 +0100
a776bd
@@ -1745,8 +1745,12 @@ NOEXPORT char *parse_service_option(CMD
a776bd
     case CMD_SET_DEFAULTS:
a776bd
         section->log_level=LOG_NOTICE;
a776bd
 #if !defined (USE_WIN32) && !defined (__vms)
a776bd
+#if defined(LOG_AUTHPRIV)
a776bd
+        new_global_options.log_facility=LOG_AUTHPRIV;
a776bd
+#else
a776bd
         new_global_options.log_facility=LOG_DAEMON;
a776bd
 #endif
a776bd
+#endif
a776bd
         break;
a776bd
     case CMD_SET_COPY:
a776bd
         section->log_level=new_service_options.log_level;