2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <afsconfig.h>
11 #include <afs/param.h>
25 #include <WINNT/afsevent.h>
27 #include <afs/afsutil.h>
29 #include "AFS_component_version_number.c"
31 /* returns 0 if the password is long enough, otherwise non-zero */
32 main(int argc, char *argv[])
34 char oldpassword[512];
38 if (fgets(oldpassword, 512, stdin))
39 while (fgets(password, 512, stdin)) {
40 if (strlen(password) > 8) { /* password includes a newline */
46 fputs("Passwords must contain at least 8 characters.\n",