Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Remove md5
Baptiste Daroussin committed 11 years ago
commit dd13c343a191dc64437be8b091f93f5065c1084a
parent 8b58f7f
3 files changed +0 -13
modified libpkg/private/pkg.h
@@ -40,7 +40,6 @@
#include <archive.h>
#include <sqlite3.h>
#include <openssl/sha.h>
-
#include <openssl/md5.h>
#include <stdbool.h>
#include <uthash.h>
#include <utlist.h>
modified libpkg/private/utils.h
@@ -38,7 +38,6 @@
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/sha.h>
-
#include <openssl/md5.h>

#define STARTS_WITH(string, needle) (strncasecmp(string, needle, strlen(needle)) == 0)

modified libpkg/utils.c
@@ -368,17 +368,6 @@ is_dir(const char *path)
}

static void
-
md5_hash(unsigned char hash[MD5_DIGEST_LENGTH],
-
    char out[MD5_DIGEST_LENGTH * 2 + 1])
-
{
-
	int i;
-
	for (i = 0; i < MD5_DIGEST_LENGTH; i++)
-
		sprintf(out + (i *2), "%02x", hash[i]);
-

-
	out[MD5_DIGEST_LENGTH * 2] = '\0';
-
}
-

-
static void
sha256_hash(unsigned char hash[SHA256_DIGEST_LENGTH],
    char out[SHA256_DIGEST_LENGTH * 2 + 1])
{