Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 19 years ago
parent
commit
b3e28100d5
2 changed files with 46 additions and 0 deletions
  1. +45
    -0
      package/base/cracklib/crack_h.patch
  2. +1
    -0
      package/base/cracklib/cracklib.conf

+ 45
- 0
package/base/cracklib/crack_h.patch

@ -0,0 +1,45 @@
--- ./cracklib/crack.h.orig 2005-12-14 23:03:24.000000000 +0100
+++ ./cracklib/crack.h 2005-12-14 23:03:17.000000000 +0100
@@ -0,0 +1,42 @@
+#ifndef _CRACK_H
+#define _CRACK_H
+
+/*
+ copyright:
+ Copyright (C) 1998, 1999 Jean Pierre LeJacq <jplejacq@quoininc.com>
+
+ Distributed under the GNU GENERAL PUBLIC LICENSE.
+
+ description:
+ cracklib - a pro-active password sanity library.
+
+ ROCK Linux Note:
+ this header file is copied from the debian cracklib2_2.7-16.diff.gz
+*/
+
+
+static const char CRACKLIB_DICTPATH[] = "/var/cache/cracklib/cracklib_dict";
+/*
+ Directory and prefix of the password dictionary database used by
+ several of the utilities provided with the cracklib package. None
+ of the functions in libcrack.a actually use this. If you want to
+ use the same database as these utilities, use this constant as the
+ second argument to FascistCheck().
+*/
+
+
+extern char const* FascistCheck(char const password[], char const dictpath[]);
+/*
+ inputs:
+ password is the user chosen potential password.
+
+ dictpath is the full path name + filename prefix of the cracklib
+ dictionary database, which is hardcoded to CRACKLIB_DICTPATH in
+ several of the utility programs that come with cracklib.
+ return:
+ The NULL pointer for a good password, or a pointer to a diagnostic
+ string if it is a bad password.
+*/
+
+
+#endif

+ 1
- 0
package/base/cracklib/cracklib.conf

@ -29,6 +29,7 @@ makeinstopt="$makeinstopt SRCDICTS=\$datadir/dict/words \
cl_pm(){
cp -f cracklib/libcrack.a $libdir
cp -f cracklib/packer.h $includedir
cp -f cracklib/crack.h $includedir
}
hook_add postmake 3 cl_pm

Loading…
Cancel
Save