mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.2 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/cracklib/crack_h.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./cracklib/crack.h.orig 2005-12-14 23:03:24.000000000 +0100
  20. +++ ./cracklib/crack.h 2005-12-14 23:03:17.000000000 +0100
  21. @@ -0,0 +1,42 @@
  22. +#ifndef _CRACK_H
  23. +#define _CRACK_H
  24. +
  25. +/*
  26. + copyright:
  27. + Copyright (C) 1998, 1999 Jean Pierre LeJacq <jplejacq@quoininc.com>
  28. +
  29. + Distributed under the GNU GENERAL PUBLIC LICENSE.
  30. +
  31. + description:
  32. + cracklib - a pro-active password sanity library.
  33. +
  34. + ROCK Linux Note:
  35. + this header file is copied from the debian cracklib2_2.7-16.diff.gz
  36. +*/
  37. +
  38. +
  39. +static const char CRACKLIB_DICTPATH[] = "/var/cache/cracklib/cracklib_dict";
  40. +/*
  41. + Directory and prefix of the password dictionary database used by
  42. + several of the utilities provided with the cracklib package. None
  43. + of the functions in libcrack.a actually use this. If you want to
  44. + use the same database as these utilities, use this constant as the
  45. + second argument to FascistCheck().
  46. +*/
  47. +
  48. +
  49. +extern char const* FascistCheck(char const password[], char const dictpath[]);
  50. +/*
  51. + inputs:
  52. + password is the user chosen potential password.
  53. +
  54. + dictpath is the full path name + filename prefix of the cracklib
  55. + dictionary database, which is hardcoded to CRACKLIB_DICTPATH in
  56. + several of the utility programs that come with cracklib.
  57. + return:
  58. + The NULL pointer for a good password, or a pointer to a diagnostic
  59. + string if it is a bad password.
  60. +*/
  61. +
  62. +
  63. +#endif