1 --- cracklib,2.7/cracklib/fascist.c.rh Wed Dec 31 05:26:46 1997
2 +++ cracklib,2.7/cracklib/fascist.c Tue Mar 10 18:17:43 1998
9 #define ISSKIP(x) (isspace(x) || ispunct(x))
12 return ("it does not contain enough DIFFERENT characters");
15 - strcpy(password, Lowercase(password));
16 + strcpy(password, (char *)Lowercase(password));
24 - strcpy(password, Reverse(password));
25 + strcpy(password, (char *)Reverse(password));
27 for (i = 0; r_destructors[i]; i++)
29 --- cracklib,2.7/cracklib/Makefile.rh Sun Dec 14 17:49:21 1997
30 +++ cracklib,2.7/cracklib/Makefile Tue Mar 10 18:54:11 1998
36 -OBJ= fascist.o packlib.o rules.o stringlib.o
37 -CFLAGS= -O -I../cracklib -DIN_CRACKLIB
39 +OBJ = fascist.o packlib.o rules.o stringlib.o
40 +CFLAGS = $(OPTFLAGS) -I../cracklib -DIN_CRACKLIB -fPIC
46 +$(LIB): $(OBJ) Makefile
47 + $(LD) -shared -soname $(LIB).$(MAJOR) -o $(LIB).$(VERSION) $(OBJ) -lc
48 + rm -f $(LIB).$(MAJOR) $(LIB)
49 + ln -s $(LIB).$(VERSION) $(LIB).$(MAJOR)
50 + ln -s $(LIB).$(MAJOR) $(LIB)
53 - -rm -f $(OBJ) $(LIB) *~
54 + -rm -f $(OBJ) $(LIB) $(LIB).$(VERSION) *~
56 +install: $(LIB) crack.h
57 + install -m 755 $(LIB).$(VERSION) $(ROOT)/usr/lib
58 + ln -sf $(LIB).$(VERSION) $(ROOT)/usr/lib/$(LIB)
59 + install -m 644 crack.h $(ROOT)/usr/include
60 --- cracklib,2.7/cracklib/crack.h.rh Tue Mar 10 18:17:43 1998
61 +++ cracklib,2.7/cracklib/crack.h Tue Mar 10 18:17:43 1998
67 +/* Pass this function a password (pw) and a path to the
68 + * dictionaries (/usr/lib/cracklib_dict should be specified)
69 + * and it will either return a NULL string, meaning that the
70 + * password is good, or a pointer to a string that explains the
71 + * problem with the password.
72 + * You must link with -lcrack
75 +extern char *FascistCheck(char *pw, char *dictpath);
78 --- cracklib,2.7/util/Makefile.rh Sun Dec 14 17:49:34 1997
79 +++ cracklib,2.7/util/Makefile Tue Mar 10 18:17:43 1998
81 #SunOS users (and others?) should consider static linking of their passwd binary
82 #CFLAGS= -O -I../cracklib '-DCRACKLIB_DICTPATH="$(DICTPATH)"' -Bstatic
84 -CFLAGS= -O -I../cracklib '-DCRACKLIB_DICTPATH="$(DICTPATH)"'
85 -LIBS= ../cracklib/libcrack.a
86 +CFLAGS = $(OPTFLAGS) -I../cracklib '-DCRACKLIB_DICTPATH="$(DICTPATH)"'
87 +LDFLAGS = -L../cracklib -lcrack
88 +LIBS = ../cracklib/libcrack.so
90 all: packer unpacker testnum teststr testlib
93 packer: packer.o $(LIBS)
94 - cc $(CFLAGS) -o $@ $@.o $(LIBS)
95 + $(CC) $(CFLAGS) -o $@ $@.o $(LDFLAGS)
97 unpacker: unpacker.o $(LIBS)
98 - cc $(CFLAGS) -o $@ $@.o $(LIBS)
99 + $(CC) $(CFLAGS) -o $@ $@.o $(LDFLAGS)
101 testnum: testnum.o $(LIBS)
102 - cc $(CFLAGS) -o $@ $@.o $(LIBS)
103 + $(CC) $(CFLAGS) -o $@ $@.o $(LDFLAGS)
105 teststr: teststr.o $(LIBS)
106 - cc $(CFLAGS) -o $@ $@.o $(LIBS)
107 + $(CC) $(CFLAGS) -o $@ $@.o $(LDFLAGS)
109 testlib: testlib.o $(LIBS)
110 - cc $(CFLAGS) -o $@ $@.o $(LIBS)
111 + $(CC) $(CFLAGS) -o $@ $@.o $(LDFLAGS)
115 -rm teststr testnum testlib packer unpacker
117 +install: all create-cracklib-dict
118 + install -m 755 mkdict packer create-cracklib-dict $(ROOT)/usr/sbin
119 --- cracklib,2.7/util/create-cracklib-dict.rh Tue Mar 10 18:17:43 1998
120 +++ cracklib,2.7/util/create-cracklib-dict Tue Mar 10 18:17:43 1998
123 +if [ -z "$*" ]; then
125 + echo " /usr/sbin/create-cracklib-dict wordlist ..."
127 + echo "This script takes one or more word list files as arguments"
128 + echo "and converts them into cracklib dictionaries for use"
129 + echo "by password checking programs. The results are placed in"
130 + echo "/usr/lib/cracklib_dict.*"
133 + echo "/usr/sbin/create-cracklib-dict /usr/dict/words"
135 + /usr/sbin/mkdict $* | /usr/sbin/packer /usr/lib/cracklib_dict
137 --- cracklib,2.7/Makefile.rh Wed Dec 31 05:33:53 1997
138 +++ cracklib,2.7/Makefile Tue Mar 10 18:52:47 1998
146 +VERSION=$(MAJOR).$(MINOR)
147 +export MAJOR MINOR VERSION
150 # set this to the absolute path (less extn) of compressed dict.
152 -DICTPATH="/usr/local/lib/pw_dict"
153 +DICTPATH="/usr/lib/cracklib_dict"
156 # Set this to the path of one or more files continaing wordlists.
158 -SRCDICTS=/usr/dict/words
159 +SRCDICTS=/usr/dict/words /usr/dict/extra.words
162 # If you have installed the cracklib-dicts directory, use this
164 -rm -f all installed Part* *.BAK *.bak *~
167 + ( cd cracklib && make install && exit $$? )
168 + ( cd util && make install && exit $$? )
169 @echo 'if "sort" dies from lack of space, see "util/mkdict"'
170 - util/mkdict $(SRCDICTS) | util/packer $(DICTPATH)
171 + util/mkdict $(SRCDICTS) | LD_LIBRARY_PATH=cracklib util/packer $(ROOT)$(DICTPATH)
173 ### @echo 'now go install passwd/passwd where you want it'