diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-14 19:14:05 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-14 19:14:05 +0300 |
commit | 981bc118f8bdf1df6c23c096a52c890a87ee3e5e (patch) | |
tree | 73063efdb73ce4ee3511cc827181ff9c6b28427e /src/apk_io.h | |
parent | e9eaedff5071b94d166973f13df90e47ff4936fe (diff) | |
download | apk-tools-981bc118f8bdf1df6c23c096a52c890a87ee3e5e.tar.gz apk-tools-981bc118f8bdf1df6c23c096a52c890a87ee3e5e.tar.bz2 apk-tools-981bc118f8bdf1df6c23c096a52c890a87ee3e5e.tar.xz apk-tools-981bc118f8bdf1df6c23c096a52c890a87ee3e5e.zip |
db: live with sha1 and md5
this also convers scripts file to a tar archive.
Diffstat (limited to 'src/apk_io.h')
-rw-r--r-- | src/apk_io.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/apk_io.h b/src/apk_io.h index 0ebf467..1fe4f2c 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -11,9 +11,10 @@ #ifndef APK_IO #define APK_IO +#include <openssl/evp.h> + #include "apk_defines.h" #include "apk_blob.h" -#include "apk_csum.h" struct apk_file_info { char *name; @@ -26,7 +27,7 @@ struct apk_file_info { mode_t mode; time_t mtime; dev_t device; - csum_t csum; + struct apk_checksum csum; }; struct apk_istream { @@ -83,7 +84,7 @@ size_t apk_ostream_write_string(struct apk_ostream *ostream, const char *string) apk_blob_t apk_blob_from_istream(struct apk_istream *istream, size_t size); apk_blob_t apk_blob_from_file(const char *file); -int apk_file_get_info(const char *filename, struct apk_file_info *fi); +int apk_file_get_info(const char *filename, int checksum, struct apk_file_info *fi); int apk_url_download(const char *url, const char *file); const char *apk_url_local_file(const char *url); |