=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/skey/skey.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/skey/skey.c 1996/09/27 15:41:36 1.3 --- src/usr.bin/skey/skey.c 1996/09/29 04:33:58 1.4 *************** *** 1,4 **** ! /* * $OpenBSD: skey.c,v 1.3 1996/09/27 15:41:36 millert Exp $*/ /* * S/KEY v1.1b (skey.c) * --- 1,4 ---- ! /* * $OpenBSD: skey.c,v 1.4 1996/09/29 04:33:58 millert Exp $*/ /* * S/KEY v1.1b (skey.c) * *************** *** 59,66 **** } } ! /* could be in the form / */ if (argc <= optind + 1) { /* look for / in it */ if (argc <= optind) --- 59,76 ---- } } ! /* check for md4/md5 argument */ ! if (argv[optind]) { ! if (strcmp(argv[optind], "MD4") == 0) { ! skey_set_MDX(4); ! optind++; ! } else if (strcmp(argv[optind], "MD5") == 0) { ! skey_set_MDX(5); ! optind++; ! } ! } + /* could be in the form / */ if (argc <= optind + 1) { /* look for / in it */ if (argc <= optind) *************** *** 118,123 **** usage(s) char *s; { ! (void)fprintf(stderr, "Usage: %s [-x] [-4|-5] [-n count] [-p password ] sequence# [/] key", s); exit(1); } --- 128,133 ---- usage(s) char *s; { ! (void)fprintf(stderr, "Usage: %s [-x] [-4|-5] [-n count] [-p password] [MD4|MD5] sequence# [/] key", s); exit(1); }