/* -*-c-*-
*
- * $Id: mkphrase.c,v 1.2 2000/12/06 20:33:27 mdw Exp $
+ * $Id$
*
* Generate passphrases from word lists
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: mkphrase.c,v $
- * Revision 1.2 2000/12/06 20:33:27 mdw
- * Make flags be macros rather than enumerations, to ensure that they're
- * unsigned.
- *
- * Revision 1.1 2000/08/06 10:50:55 mdw
- * (mkphrase): New program for generating random passphrases with measured
- * strength.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
static void usage(FILE *fp)
{
pquis(fp, "\
-Usage: $ [-p] [-b bits] [-g gen] [-n count] [-r [min-]max] wordlist...\n\
+Usage: $ [-p] [-b BITS] [-g GEN] [-n COUNT] [-r [MIN-]MAX] WORDLIST...\n\
");
}
ctx = ops->init();
while (*argv) {
if (strcmp(*argv, "-") == 0)
- ops->scan(ctx, stdin);
+ ops->scan(stdin, ctx);
else {
FILE *fp = fopen(*argv, "r");
if (!fp) {