Avesh Agarwal e5cb61c
diff -urNp stunnel-4.52/doc/stunnel.8 stunnel-4.52-patched/doc/stunnel.8
Avesh Agarwal e5cb61c
--- stunnel-4.52/doc/stunnel.8	2012-01-09 18:09:55.000000000 -0500
Avesh Agarwal e5cb61c
+++ stunnel-4.52-patched/doc/stunnel.8	2012-03-05 18:29:08.910298860 -0500
Avesh Agarwal e5cb61c
@@ -178,7 +178,7 @@ info (6), or debug (7).  All logs for th
Avesh Agarwal d4eb316
 all levels numerically less than it will be shown.  Use \fIdebug = debug\fR or
Avesh Agarwal d4eb316
 \&\fIdebug = 7\fR for greatest debugging output.  The default is notice (5).
66a8720
 .Sp
66a8720
-The syslog facility 'daemon' will be used unless a facility name is supplied.
66a8720
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
66a8720
 (Facilities are not supported on Win32.)
66a8720
 .Sp
66a8720
 Case is ignored for both facilities and levels.
Avesh Agarwal e5cb61c
diff -urNp stunnel-4.52/doc/stunnel.html stunnel-4.52-patched/doc/stunnel.html
Avesh Agarwal e5cb61c
--- stunnel-4.52/doc/stunnel.html	2012-01-09 18:09:56.000000000 -0500
Avesh Agarwal e5cb61c
+++ stunnel-4.52-patched/doc/stunnel.html	2012-03-05 18:29:50.890228103 -0500
Avesh Agarwal e5cb61c
@@ -212,7 +212,7 @@ emerg (0), alert (1), crit (2), err (3),
d32eab4
 info (6), or debug (7).  All logs for the specified level and
Avesh Agarwal d4eb316
 all levels numerically less than it will be shown.  Use debug = debug or
Avesh Agarwal d4eb316
 debug = 7 for greatest debugging output.  The default is notice (5).

d32eab4
-

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

d32eab4
+

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

d32eab4
 (Facilities are not supported on Win32.)

d32eab4
 

Case is ignored for both facilities and levels.

d32eab4
 
Avesh Agarwal e5cb61c
diff -urNp stunnel-4.52/doc/stunnel.pod stunnel-4.52-patched/doc/stunnel.pod
Avesh Agarwal e5cb61c
--- stunnel-4.52/doc/stunnel.pod	2012-01-09 18:09:38.000000000 -0500
Avesh Agarwal e5cb61c
+++ stunnel-4.52-patched/doc/stunnel.pod	2012-03-05 18:30:27.118167249 -0500
Avesh Agarwal e5cb61c
@@ -152,7 +152,7 @@ info (6), or debug (7).  All logs for th
Avesh Agarwal d4eb316
 all levels numerically less than it will be shown.  Use I<debug = debug> or
Avesh Agarwal d4eb316
 I<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.
Avesh Agarwal e5cb61c
diff -urNp stunnel-4.52/src/options.c stunnel-4.52-patched/src/options.c
Avesh Agarwal e5cb61c
--- stunnel-4.52/src/options.c	2012-01-01 16:41:58.000000000 -0500
Avesh Agarwal e5cb61c
+++ stunnel-4.52-patched/src/options.c	2012-03-05 18:33:23.820872899 -0500
Avesh Agarwal e5cb61c
@@ -175,8 +175,12 @@ static char *parse_global_option(CMD cmd
e5d9f7c
     case CMD_INIT:
4e0e9dd
         new_global_options.debug_level=LOG_NOTICE;
e5d9f7c
 #if !defined (USE_WIN32) && !defined (__vms)
e5d9f7c
+#if defined(LOG_AUTHPRIV)
4e0e9dd
+        new_global_options.facility=LOG_AUTHPRIV;
e5d9f7c
+#else
4e0e9dd
         new_global_options.facility=LOG_DAEMON;
e5d9f7c
 #endif
e5d9f7c
+#endif
e5d9f7c
         break;
e5d9f7c
     case CMD_EXEC:
e5d9f7c
         if(strcasecmp(opt, "debug"))