Fix digest handling after 5ae680e49
modified libpkg/private/utils.h
@@ -84,13 +84,14 @@ int is_dir(const char *);
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/rsa.c
@@ -82,14 +82,17 @@ _load_rsa_public_key(const char *rsa_key_path)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/update.c
@@ -122,7 +122,7 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, const char
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -136,8 +136,7 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, const char
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -156,11 +155,12 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, const char
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -170,7 +170,8 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, const char
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -190,7 +191,6 @@ repo_fetch_remote_extract_tmp(struct pkg_repo *repo, const char *filename,
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -205,7 +205,6 @@ repo_fetch_remote_extract_tmp(struct pkg_repo *repo, const char *filename,
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -213,12 +212,10 @@ repo_fetch_remote_extract_tmp(struct pkg_repo *repo, const char *filename,
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
|
|
|
|
| - | |
|
|
|
|
|
modified libpkg/utils.c
@@ -334,15 +334,45 @@ sha256_hash(unsigned char hash[SHA256_DIGEST_LENGTH],
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -351,16 +381,20 @@ sha256_file(const char *path, char out[SHA256_DIGEST_LENGTH * 2 + 1])
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|