summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorReid Rankin <reidrankin@gmail.com>2020-01-24 14:56:53 +0000
committerTimo Teräs <timo.teras@iki.fi>2020-01-25 16:33:17 +0200
commit6cc3e6a1dee8cf7c80ef59b2d23a0e5980af7fe9 (patch)
tree6fb08c9114731cfd14ff36658334396b3a4bafe3 /src/io.c
parent9a76f0d6a6f3deabeba72f4fb2788bd45f929a8a (diff)
downloadapk-tools-6cc3e6a1dee8cf7c80ef59b2d23a0e5980af7fe9.tar.gz
apk-tools-6cc3e6a1dee8cf7c80ef59b2d23a0e5980af7fe9.tar.bz2
apk-tools-6cc3e6a1dee8cf7c80ef59b2d23a0e5980af7fe9.tar.xz
apk-tools-6cc3e6a1dee8cf7c80ef59b2d23a0e5980af7fe9.zip
don't ignore md parameter to apk_fileinfo_hash_xattr_array()
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index ec7b38a..fcac97d 100644
--- a/src/io.c
+++ b/src/io.c
@@ -649,7 +649,7 @@ void apk_fileinfo_hash_xattr_array(struct apk_xattr_array *xattrs, const EVP_MD
qsort(xattrs->item, xattrs->num, sizeof(xattrs->item[0]), cmp_xattr);
- EVP_DigestInit_ex(mdctx, EVP_sha1(), NULL);
+ EVP_DigestInit_ex(mdctx, md, NULL);
foreach_array_item(xattr, xattrs) {
hash_len_data(mdctx, strlen(xattr->name), xattr->name);
hash_len_data(mdctx, xattr->value.len, xattr->value.ptr);