e5d9f7c
Change the default log facility from LOG_DAEMON to LOG_AUTHPRIV.
e5d9f7c
--- stunnel-4.08/doc/stunnel.pod	2005-01-22 11:42:30.000000000 -0500
e5d9f7c
+++ stunnel-4.08/doc/stunnel.pod	2005-03-15 17:07:32.714670692 -0500
e5d9f7c
@@ -186,7 +186,7 @@
e5d9f7c
 all levels numerically less than it will be shown.  Use B<debug = debug> or
e5d9f7c
 B<debug = 7> for greatest debugging output.  The default is notice (5).
e5d9f7c
 
e5d9f7c
-The syslog facility 'daemon' will be used unless a facility name is supplied.
e5d9f7c
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
e5d9f7c
 (Facilities are not supported on Win32.)
e5d9f7c
 
e5d9f7c
 Case is ignored for both facilities and levels.
e5d9f7c
--- stunnel-4.08/doc/stunnel.8	2005-01-22 11:42:31.000000000 -0500
e5d9f7c
+++ stunnel-4.08/doc/stunnel.8	2005-03-15 17:07:32.715670561 -0500
e5d9f7c
@@ -269,7 +269,7 @@
e5d9f7c
 all levels numerically less than it will be shown.  Use \fBdebug = debug\fR or
e5d9f7c
 \&\fBdebug = 7\fR for greatest debugging output.  The default is notice (5).
e5d9f7c
 .Sp
e5d9f7c
-The syslog facility 'daemon' will be used unless a facility name is supplied.
e5d9f7c
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
e5d9f7c
 (Facilities are not supported on Win32.)
e5d9f7c
 .Sp
e5d9f7c
 Case is ignored for both facilities and levels.
e5d9f7c
--- stunnel-4.08/doc/stunnel.html	2005-01-22 11:42:31.000000000 -0500
e5d9f7c
+++ stunnel-4.08/doc/stunnel.html	2005-03-15 17:08:57.859551451 -0500
e5d9f7c
@@ -270,7 +270,7 @@
e5d9f7c
 debug = 7 for greatest debugging output.  The default is notice (5).

e5d9f7c
 
e5d9f7c
 
e5d9f7c
-

The syslog facility 'daemon' will be used unless a facility name is supplied.

e5d9f7c
+

The syslog facility 'authpriv' will be used unless a facility name is supplied.

e5d9f7c
 (Facilities are not supported on Win32.)

e5d9f7c
 
e5d9f7c
 
e5d9f7c
--- stunnel-4.08/src/options.c	2005-02-15 14:08:28.000000000 -0500
e5d9f7c
+++ stunnel-4.08/src/options.c	2005-03-15 17:07:32.713670823 -0500
e5d9f7c
@@ -269,8 +269,12 @@
e5d9f7c
     case CMD_INIT:
e5d9f7c
         options.debug_level=5;
e5d9f7c
 #if !defined (USE_WIN32) && !defined (__vms)
e5d9f7c
+#if defined(LOG_AUTHPRIV)
e5d9f7c
+        options.facility=LOG_AUTHPRIV;
e5d9f7c
+#else
e5d9f7c
         options.facility=LOG_DAEMON;
e5d9f7c
 #endif
e5d9f7c
+#endif
e5d9f7c
         break;
e5d9f7c
     case CMD_EXEC:
e5d9f7c
         if(strcasecmp(opt, "debug"))