diff -up stunnel-5.30/doc/stunnel.html.in.authpriv stunnel-5.30/doc/stunnel.html.in --- stunnel-5.30/doc/stunnel.html.in.authpriv 2015-12-05 22:53:08.000000000 +0100 +++ stunnel-5.30/doc/stunnel.html.in 2016-02-03 16:39:02.259239765 +0100 @@ -246,7 +246,7 @@

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).

-

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

+

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

Case is ignored for both facilities and levels.

diff -up stunnel-5.30/doc/stunnel.pod.in.authpriv stunnel-5.30/doc/stunnel.pod.in --- stunnel-5.30/doc/stunnel.pod.in.authpriv 2015-12-05 22:52:36.000000000 +0100 +++ stunnel-5.30/doc/stunnel.pod.in 2016-02-03 16:39:20.123338658 +0100 @@ -195,7 +195,7 @@ info (6), or debug (7). All logs for th all levels numerically less than it will be shown. Use I or I for greatest debugging output. The default is notice (5). -The syslog facility 'daemon' will be used unless a facility name is supplied. +The syslog facility 'authpriv' will be used unless a facility name is supplied. (Facilities are not supported on Win32.) Case is ignored for both facilities and levels. diff -up stunnel-5.30/doc/stunnel.8.in.authpriv stunnel-5.30/doc/stunnel.8.in --- stunnel-5.30/doc/stunnel.8.in.authpriv 2015-12-05 22:53:08.000000000 +0100 +++ stunnel-5.30/doc/stunnel.8.in 2016-02-03 16:38:31.199067820 +0100 @@ -207,7 +207,7 @@ info (6), or debug (7). All logs for th all levels numerically less than it will be shown. Use \fIdebug = debug\fR or \&\fIdebug = 7\fR for greatest debugging output. The default is notice (5). .Sp -The syslog facility 'daemon' will be used unless a facility name is supplied. +The syslog facility 'authpriv' will be used unless a facility name is supplied. (Facilities are not supported on Win32.) .Sp Case is ignored for both facilities and levels. diff -up stunnel-5.30/src/options.c.authpriv stunnel-5.30/src/options.c --- stunnel-5.30/src/options.c.authpriv 2016-01-15 17:45:23.000000000 +0100 +++ stunnel-5.30/src/options.c 2016-02-03 15:07:56.309333700 +0100 @@ -610,8 +610,12 @@ NOEXPORT char *parse_global_option(CMD c case CMD_BEGIN: new_service_options.log_level=LOG_NOTICE; #if !defined (USE_WIN32) && !defined (__vms) +#if defined(LOG_AUTHPRIV) + new_global_options.log_facility=LOG_AUTHPRIV; +#else new_global_options.log_facility=LOG_DAEMON; #endif +#endif break; case CMD_EXEC: if(strcasecmp(opt, "debug"))