summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-08 09:50:21 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-08 10:45:49 +0300
commitbf094dc5ea30be1defb5c9f0d2064c6b2fc96272 (patch)
tree34be7a9326397d6b408a8f59dd61f8e6ea4bc238 /src/apk_defines.h
parentc84196e0d367d8e82e5a3161394741f86bc32750 (diff)
downloadapk-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.h14
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;