Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix checkum generation
Baptiste Daroussin committed 14 years ago
commit a35a0cbaaad8c6ce832e02854107a1c081b44af0
parent 1514063
2 files changed +2 -1
modified libpkg/pkg_repo.c
@@ -12,6 +12,7 @@
#include <unistd.h>

#include <openssl/err.h>
+
#include <openssl/sha.h>
#include <openssl/rsa.h>
#include <openssl/ssl.h>

modified libpkg/pkg_util.c
@@ -223,7 +223,7 @@ sha256_hash(unsigned char hash[SHA256_DIGEST_LENGTH], char out[SHA256_DIGEST_LEN
	for (i = 0; i < SHA256_DIGEST_LENGTH; i++)
		sprintf(out + (i * 2), "%02x", hash[i]);

-
	out[sizeof(out) -1] = '\0';
+
	out[SHA256_DIGEST_LENGTH * 2] = '\0';
}

void