1
--- cracklib2-2.7.orig/cracklib/packlib.c
2
+++ cracklib2-2.7/cracklib/packlib.c
5
static const char vers_id[] = "packlib.c : v2.3p2 Alec Muffett 18 May 1993";
7
-/* PWClose() already needs this, so forward-declare it */
8
+/* PWClose() already needs these, so forward-declare them */
9
int PutPW(PWDICT* pwp, char* string);
10
+char * GetPW(PWDICT* pwp, int32 number);
13
PWOpen(char const prefix[], char const mode[])
18
+ if (pwp->flags & PFOR_USEHWMS)
23
pwp->header.pih_magic = 0;
25
+ /* reset the static prevblock */
32
static int32 prevblock = 0xffffffff;
37
+ /* we need to reset prevblock when we close our dictionary file */
38
+ prevblock = 0xffffffff;
39
+ return ((char *) 0);
42
thisblock = number / NUMWORDS;
44
if (prevblock == thisblock)