4e5299
diff -urNp stunnel-4.56-patched/doc/stunnel.8 stunnel-4.56-current/doc/stunnel.8
4e5299
--- stunnel-4.56-patched/doc/stunnel.8	2013-03-28 14:38:34.921698500 -0400
4e5299
+++ stunnel-4.56-current/doc/stunnel.8	2013-03-28 14:39:09.676668676 -0400
4e5299
@@ -190,7 +190,7 @@ info (6), or debug (7).  All logs for th
4e5299
 all levels numerically less than it will be shown.  Use \fIdebug = debug\fR or
4e5299
 \&\fIdebug = 7\fR for greatest debugging output.  The default is notice (5).
4e5299
 .Sp
4e5299
-The syslog facility 'daemon' will be used unless a facility name is supplied.
4e5299
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
4e5299
 (Facilities are not supported on Win32.)
4e5299
 .Sp
4e5299
 Case is ignored for both facilities and levels.
4e5299
diff -urNp stunnel-4.56-patched/doc/stunnel.html stunnel-4.56-current/doc/stunnel.html
4e5299
--- stunnel-4.56-patched/doc/stunnel.html	2013-03-28 14:38:34.960698467 -0400
4e5299
+++ stunnel-4.56-current/doc/stunnel.html	2013-03-28 14:39:09.678668674 -0400
4e5299
@@ -224,7 +224,7 @@ emerg (0), alert (1), crit (2), err (3),
4e5299
 info (6), or debug (7).  All logs for the specified level and
4e5299
 all levels numerically less than it will be shown.  Use debug = debug or
4e5299
 debug = 7 for greatest debugging output.  The default is notice (5).

4e5299
-

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

4e5299
+

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

4e5299
 (Facilities are not supported on Win32.)

4e5299
 

Case is ignored for both facilities and levels.

4e5299
 
4e5299
diff -urNp stunnel-4.56-patched/doc/stunnel.pod stunnel-4.56-current/doc/stunnel.pod
4e5299
--- stunnel-4.56-patched/doc/stunnel.pod	2013-03-28 14:38:34.959698468 -0400
4e5299
+++ stunnel-4.56-current/doc/stunnel.pod	2013-03-28 14:39:09.678668674 -0400
4e5299
@@ -184,7 +184,7 @@ info (6), or debug (7).  All logs for th
4e5299
 all levels numerically less than it will be shown.  Use I<debug = debug> or
4e5299
 I<debug = 7> for greatest debugging output.  The default is notice (5).
4e5299
 
4e5299
-The syslog facility 'daemon' will be used unless a facility name is supplied.
4e5299
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
4e5299
 (Facilities are not supported on Win32.)
4e5299
 
4e5299
 Case is ignored for both facilities and levels.
4e5299
diff -urNp stunnel-4.56-patched/src/options.c stunnel-4.56-current/src/options.c
4e5299
--- stunnel-4.56-patched/src/options.c	2013-03-28 14:38:34.919698502 -0400
4e5299
+++ stunnel-4.56-current/src/options.c	2013-03-28 14:39:09.680668671 -0400
4e5299
@@ -185,8 +185,12 @@ static char *parse_global_option(CMD cmd
4e5299
     case CMD_BEGIN:
4e5299
         new_global_options.debug_level=LOG_NOTICE;
4e5299
 #if !defined (USE_WIN32) && !defined (__vms)
4e5299
+#if defined(LOG_AUTHPRIV)
4e5299
+        new_global_options.facility=LOG_AUTHPRIV;
4e5299
+#else
4e5299
         new_global_options.facility=LOG_DAEMON;
4e5299
 #endif
4e5299
+#endif
4e5299
         break;
4e5299
     case CMD_EXEC:
4e5299
         if(strcasecmp(opt, "debug"))