md5.c (130351) | md5.c (130918) |
---|---|
1/* 2 * Derived from: 3 * 4 * MDDRIVER.C - test driver for MD2, MD4 and MD5 5 */ 6 7/* 8 * Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All --- 4 unchanged lines hidden (view full) --- 13 * software for any particular purpose. It is provided "as is" 14 * without express or implied warranty of any kind. 15 * 16 * These notices must be retained in any copies of any part of this 17 * documentation and/or software. 18 */ 19 20#include <sys/cdefs.h> | 1/* 2 * Derived from: 3 * 4 * MDDRIVER.C - test driver for MD2, MD4 and MD5 5 */ 6 7/* 8 * Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All --- 4 unchanged lines hidden (view full) --- 13 * software for any particular purpose. It is provided "as is" 14 * without express or implied warranty of any kind. 15 * 16 * These notices must be retained in any copies of any part of this 17 * documentation and/or software. 18 */ 19 20#include <sys/cdefs.h> |
21__FBSDID("$FreeBSD: head/sbin/md5/md5.c 130351 2004-06-11 16:07:02Z eik $"); | 21__FBSDID("$FreeBSD: head/sbin/md5/md5.c 130918 2004-06-22 09:18:50Z eik $"); |
22 23#include <sys/types.h> 24#include <sys/time.h> 25#include <sys/resource.h> 26#include <err.h> 27#include <md5.h> 28#include <ripemd.h> 29#include <sha.h> --- 92 unchanged lines hidden (view full) --- 122 progname = argv[0]; 123 else 124 progname++; 125 126 for (digest = 0; digest < sizeof(Algorithm)/sizeof(*Algorithm); digest++) 127 if (strcasecmp(Algorithm[digest].progname, progname) == 0) 128 break; 129 | 22 23#include <sys/types.h> 24#include <sys/time.h> 25#include <sys/resource.h> 26#include <err.h> 27#include <md5.h> 28#include <ripemd.h> 29#include <sha.h> --- 92 unchanged lines hidden (view full) --- 122 progname = argv[0]; 123 else 124 progname++; 125 126 for (digest = 0; digest < sizeof(Algorithm)/sizeof(*Algorithm); digest++) 127 if (strcasecmp(Algorithm[digest].progname, progname) == 0) 128 break; 129 |
130 if (Algorithm[digest].progname == NULL) | 130 if (digest == sizeof(Algorithm)/sizeof(*Algorithm)) |
131 digest = 0; 132 133 failed = 0; 134 while ((ch = getopt(argc, argv, "pqrs:tx")) != -1) 135 switch (ch) { 136 case 'p': 137 MDFilter(&Algorithm[digest], 1); 138 break; --- 198 unchanged lines hidden --- | 131 digest = 0; 132 133 failed = 0; 134 while ((ch = getopt(argc, argv, "pqrs:tx")) != -1) 135 switch (ch) { 136 case 'p': 137 MDFilter(&Algorithm[digest], 1); 138 break; --- 198 unchanged lines hidden --- |