diff options
-rw-r--r-- | src/checksum.h | 15 | ||||
-rw-r--r-- | src/md5.c | 2 |
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; |