diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-08 09:50:21 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-08 10:45:49 +0300 |
commit | bf094dc5ea30be1defb5c9f0d2064c6b2fc96272 (patch) | |
tree | 34be7a9326397d6b408a8f59dd61f8e6ea4bc238 /src/apk_defines.h | |
parent | c84196e0d367d8e82e5a3161394741f86bc32750 (diff) | |
download | apk-tools-bf094dc5ea30be1defb5c9f0d2064c6b2fc96272.tar.gz apk-tools-bf094dc5ea30be1defb5c9f0d2064c6b2fc96272.tar.bz2 apk-tools-bf094dc5ea30be1defb5c9f0d2064c6b2fc96272.tar.xz apk-tools-bf094dc5ea30be1defb5c9f0d2064c6b2fc96272.zip |
csum: use openssl instead
instead of having static md5 implemenation, use the openssl
library for digest functions.
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r-- | src/apk_defines.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h index 8dcd400..09d2a80 100644 --- a/src/apk_defines.h +++ b/src/apk_defines.h @@ -36,20 +36,6 @@ (type *)( (char *)__mptr - offsetof(type,member) );}) #endif -#if 1 -#include "md5.h" - -typedef unsigned char *csum_p; -typedef md5sum_t csum_t; -typedef struct md5_ctx csum_ctx_t; -extern csum_t bad_checksum; - -#define csum_init(ctx) md5_init(ctx) -#define csum_process(ctx, buf, len) md5_process(ctx, buf, len) -#define csum_finish(ctx, buf) md5_finish(ctx, buf) -#define csum_valid(buf) memcmp(buf, bad_checksum, sizeof(csum_t)) -#endif - extern int apk_cwd_fd, apk_verbosity, apk_wait; extern unsigned int apk_flags; |