]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Sun, 22 Oct 2000 11:51:50 +0000 (11:51 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 22 Oct 2000 11:51:50 +0000 (11:51 +0000)
src/checksum.h [new file with mode: 0644]
src/md5.c [new file with mode: 0644]

diff --git a/src/checksum.h b/src/checksum.h
new file mode 100644 (file)
index 0000000..2ae2b44
--- /dev/null
@@ -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 (file)
index 0000000..47a862f
--- /dev/null
+++ b/src/md5.c
@@ -0,0 +1,2 @@
+#include "checksum.h"
+int algorithm = ALG_MD5;