Change the default log facility from LOG_DAEMON to LOG_AUTHPRIV.
diff -urN stunnel/doc/stunnel.html stunnel-4.27/doc/stunnel.html
--- stunnel/doc/stunnel.html 2009-04-16 11:17:26.000000000 +0200
+++ stunnel-4.27/doc/stunnel.html 2009-04-16 18:09:06.000000000 +0200
@@ -189,7 +189,7 @@
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.
+
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 -urN stunnel/doc/stunnel.pod stunnel-4.27/doc/stunnel.pod
--- stunnel/doc/stunnel.pod 2009-04-16 10:38:41.000000000 +0200
+++ stunnel-4.27/doc/stunnel.pod 2009-04-16 18:08:49.000000000 +0200
@@ -139,7 +139,7 @@
all levels numerically less than it will be shown. Use B or
B 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 -urN stunnel/doc/stunnel.8 stunnel-4.27/doc/stunnel.8
--- stunnel/doc/stunnel.8 2009-04-16 11:17:25.000000000 +0200
+++ stunnel-4.27/doc/stunnel.8 2009-04-16 18:08:49.000000000 +0200
@@ -226,7 +226,7 @@
all levels numerically less than it will be shown. Use \fBdebug = debug\fR or
\&\fBdebug = 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 -urN stunnel/src/options.c stunnel-4.27/src/options.c
--- stunnel/src/options.c 2009-04-16 10:49:20.000000000 +0200
+++ stunnel-4.27/src/options.c 2009-04-16 18:08:49.000000000 +0200
@@ -136,8 +136,12 @@
case CMD_INIT:
options.debug_level=5;
#if !defined (USE_WIN32) && !defined (__vms)
+#if defined(LOG_AUTHPRIV)
+ options.facility=LOG_AUTHPRIV;
+#else
options.facility=LOG_DAEMON;
#endif
+#endif
break;
case CMD_EXEC:
if(strcasecmp(opt, "debug"))