File apg-defaults.patch of Package apg

--- apg.c	2003-08-07 17:40:39.000000000 +0200
+++ apg.c	2008-04-08 17:02:26.000000000 +0200
@@ -54,7 +54,7 @@
 
 #define MAX_MODE_LENGTH   4
 #define DEFAULT_MIN_PASS_LEN 8
-#define DEFAULT_MAX_PASS_LEN 10
+#define DEFAULT_MAX_PASS_LEN 8
 #define DEFAULT_NUM_OF_PASS 6
 
 #ifndef _XOPEN_SOURCE
@@ -136,7 +136,7 @@
  
  int option = 0;                         /* programm option                 */
 
- int algorithm = 0;                      /* algorithm for generation        */
+ int algorithm = 1;                      /* algorithm for generation        */
  int restrictions_present = FALSE;       /* restrictions flag               */
  int plain_restrictions_present = FALSE; /* dictionary restrictions_flag    */
  int bloom_restrict_present = FALSE;     /* bloom filter restrictions flag  */
@@ -310,8 +310,15 @@
       exit (-1);
     }
   }
- if (pass_mode_present != TRUE)
-    mode.pass = S_SS | S_NB | S_CL | S_SL;
+ if (pass_mode_present != TRUE) {
+    mode.pass = mode.filter = S_NB | S_CL | S_SL;
+    filter_restrict_present = TRUE;
+    restrictions_present = TRUE;
+    if (exclude_list_present == FALSE) {
+      set_exclude_list("01OIl");
+      exclude_list_present = TRUE;
+    }
+ }
  if (exclude_list_present == TRUE)
     mode.pass = mode.pass | S_RS;
  if( (tme = time(NULL)) == ( (time_t)-1))
--- doc/man/apg.1	2003-08-07 17:40:39.000000000 +0200
+++ doc/man/apg.1	2008-04-08 17:03:38.000000000 +0200
@@ -86,10 +86,10 @@
 for password generation.
 .RS
 .B 0
-- (default) pronounceable password generation
+- pronounceable password generation
 .br
 .B 1
-- random character password generation
+- (default) random character password generation
 .RE
 .TP
 .B -n num_of_pass
@@ -107,7 +107,7 @@
 generate password with maximum length 
 .B max_pass_len.
 If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
-Default maximum password length is 10.
+Default maximum password length is 8.
 .TP
 .B -M mode
 Use symbolsets specified with \fBmode\fP for password generation.
openSUSE Build Service is sponsored by