Add sha256_fileat function
modified libpkg/private/utils.h
@@ -96,6 +96,7 @@ int is_conf_file(const char *path, char *newpath, size_t len);
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/utils.c
@@ -356,13 +356,31 @@ sha256_hash(unsigned char hash[SHA256_DIGEST_LENGTH],
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|