~ubuntu-branches/debian/lenny/cracklib2/lenny

« back to all changes in this revision

Viewing changes to lib/crack.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Dittberner, Steve Langasek, Jan Dittberner
  • Date: 2008-10-16 21:04:24 UTC
  • mfrom: (4.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081016210424-bp06uo8c6xkjabzi
Tags: 2.8.12-8lenny1
[ Steve Langasek ]
* debian/update-cracklib: don't rely on [ -nt ] to return true when
  the second file is non-existent, since this fails under dash.
  LP: #278743.

[ Jan Dittberner ]
* integrate Ubuntu bugfix
* use set -e in debian/cracklib-runtime.preinst to fix lintian warning
  maintainer-script-ignores-errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CRACKLIB_H
 
2
#define CRACKLIB_H
 
3
 
 
4
#ifdef __cplusplus
 
5
extern "C" {
 
6
#endif
 
7
 
 
8
/* Pass this function a password (pw) and a path to the
 
9
 * dictionaries (/usr/lib/cracklib_dict should be specified)
 
10
 * and it will either return a NULL string, meaning that the
 
11
 * password is good, or a pointer to a string that explains the
 
12
 * problem with the password.
 
13
 * You must link with -lcrack
 
14
 */
 
15
 
 
16
extern const char *FascistCheck(const char *pw, const char *dictpath);
 
17
 
 
18
#ifdef __cplusplus
 
19
};
 
20
#endif
 
21
 
 
22
#endif