summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-10-22 11:51:50 +0000
committerJim Meyering <jim@meyering.net>2000-10-22 11:51:50 +0000
commitcf806f5d2daf229f790d40c264ffb736914b0ef7 (patch)
tree22d11565283516340f5d7fa7d07f62f39fb31415 /src
parent148e5d1b4d2d9ab1a5f9523e2e1f92914f0f2be0 (diff)
downloadcoreutils-cf806f5d2daf229f790d40c264ffb736914b0ef7.tar.xz
.
Diffstat (limited to 'src')
-rw-r--r--src/checksum.h15
-rw-r--r--src/md5.c2
2 files changed, 17 insertions, 0 deletions
diff --git a/src/checksum.h b/src/checksum.h
new file mode 100644
index 000000000..2ae2b4463
--- /dev/null
+++ b/src/checksum.h
@@ -0,0 +1,15 @@
+#include <config.h>
+
+#include <sys/types.h>
+#include "system.h"
+
+/* For long options that have no equivalent short option, use a
+ non-character as a pseudo short option, starting with CHAR_MAX + 1. */
+enum
+{
+ ALG_UNSPECIFIED = 0,
+ ALG_MD5 = CHAR_MAX + 1,
+ ALG_SHA1
+};
+
+extern int algorithm;
diff --git a/src/md5.c b/src/md5.c
new file mode 100644
index 000000000..47a862f9b
--- /dev/null
+++ b/src/md5.c
@@ -0,0 +1,2 @@
+#include "checksum.h"
+int algorithm = ALG_MD5;