]> pd.if.org Git - zpackage/blobdiff - lib/zpm.c
cleanup sha256 hash code
[zpackage] / lib / zpm.c
index 0a6f1c7e25a9741d3f089c18f1b5084ddb459d6e..f0ae5a2a3d2fcf4ab0045f8c4e03e9870875cb05 100644 (file)
--- a/lib/zpm.c
+++ b/lib/zpm.c
@@ -483,7 +483,7 @@ int zpm_hash(char *path, char *hash, uint32_t flags) {
        int fd;
        void *content;
        struct stat sbuf;
-       hash_state md;
+       struct sha256_state md;
        int j;
        unsigned char tmp[32];
 
@@ -715,7 +715,7 @@ int zpm_import(struct zpm *pkg, char *path, uint32_t flags, char *hash) {
        void *content;
        struct stat sbuf;
        unsigned char tmp[32];
-       hash_state md;
+       struct sha256_state md;
        sqlite3_stmt *ifile;
        int haverow = 0,havedata = 0;
        int j,rc,type;