diff options
author | Aleš Matěj <amatej@redhat.com> | 2021-04-27 14:08:43 +0300 |
---|---|---|
committer | Jaroslav Rohel <jrohel@redhat.com> | 2021-09-29 10:44:41 +0300 |
commit | 3a179cd7227f6a47c7c262db8e44540542f215cd (patch) | |
tree | 6fe1eca67848e4d459c2e91a072ae4c51a730ccd | |
parent | d764fe9b386aa8da1aca58b9bc3dc061f52e8f28 (diff) |
Remove commented out MD2 checksum
-rw-r--r-- | src/checksum.c | 7 | ||||
-rw-r--r-- | src/checksum.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/checksum.c b/src/checksum.c index 69cba53..688ae66 100644 --- a/src/checksum.c +++ b/src/checksum.c @@ -54,9 +54,6 @@ cr_checksum_type(const char *name) if (!strncmp(name_lower, "md", 2)) { // MD* family -// if (name_lower[2] == '2') -// return CR_CHECKSUM_MD2; -// else if (name_lower[2] == '5') if (name_lower[2] == '5') return CR_CHECKSUM_MD5; } else if (!strncmp(name_lower, "sha", 3)) { @@ -85,8 +82,6 @@ cr_checksum_name_str(cr_ChecksumType type) switch (type) { case CR_CHECKSUM_UNKNOWN: return "Unknown checksum"; -// case CR_CHECKSUM_MD2: -// return "md2"; case CR_CHECKSUM_MD5: return "md5"; case CR_CHECKSUM_SHA: @@ -122,7 +117,6 @@ cr_checksum_file(const char *filename, const EVP_MD *ctx_type; switch (type) { - //case CR_CHECKSUM_MD2: ctx_type = EVP_md2(); break; case CR_CHECKSUM_MD5: ctx_type = EVP_md5(); break; case CR_CHECKSUM_SHA: ctx_type = EVP_sha1(); break; case CR_CHECKSUM_SHA1: ctx_type = EVP_sha1(); break; @@ -207,7 +201,6 @@ cr_checksum_new(cr_ChecksumType type, GError **err) assert(!err || *err == NULL); switch (type) { - //case CR_CHECKSUM_MD2: ctx_type = EVP_md2(); break; case CR_CHECKSUM_MD5: ctx_type = EVP_md5(); break; case CR_CHECKSUM_SHA: ctx_type = EVP_sha1(); break; case CR_CHECKSUM_SHA1: ctx_type = EVP_sha1(); break; diff --git a/src/checksum.h b/src/checksum.h index 599eb4a..a04fb52 100644 --- a/src/checksum.h +++ b/src/checksum.h @@ -42,7 +42,6 @@ typedef struct _cr_ChecksumCtx cr_ChecksumCtx; */ typedef enum { CR_CHECKSUM_UNKNOWN, /*!< Unknown checksum */ -// CR_CHECKSUM_MD2, /*!< MD2 checksum */ CR_CHECKSUM_MD5, /*!< MD5 checksum */ CR_CHECKSUM_SHA, /*!< SHA checksum */ CR_CHECKSUM_SHA1, /*!< SHA1 checksum */ |