X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lib%2Fzpm.c;h=f0ae5a2a3d2fcf4ab0045f8c4e03e9870875cb05;hb=d3b90e6aa8ab580c77ead76ff5c6c6dca7991cc6;hp=0a6f1c7e25a9741d3f089c18f1b5084ddb459d6e;hpb=84f276b21e57aa8fe1e16d01e75fee1097d5daf8;p=zpackage diff --git a/lib/zpm.c b/lib/zpm.c index 0a6f1c7..f0ae5a2 100644 --- 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;