summaryrefslogtreecommitdiffstats
path: root/toolbox/md5.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-06-07 21:53:04 -0700
committerElliott Hughes <enh@google.com>2014-06-09 16:10:42 -0700
commit7fc47129cf6a25b01b551816ac58ff3f53320123 (patch)
tree130c0288ea5deeaa9cecdd905f19beacdd88a42c /toolbox/md5.c
parent6e3fffeca6ac00379b0a22888d04a58ee0f51057 (diff)
downloadsystem_core-7fc47129cf6a25b01b551816ac58ff3f53320123.zip
system_core-7fc47129cf6a25b01b551816ac58ff3f53320123.tar.gz
system_core-7fc47129cf6a25b01b551816ac58ff3f53320123.tar.bz2
Switch md5 over to openssl rather than libc.
It doesn't make any sense for the C library to contain private stuff that's only used by toolbox. Rather than move that stuff out of bionic and into here, let's just use the same MD5 implementation the rest of the system's using. Change-Id: Ia1c73164124094b532af3453b90c4bd1ebfdaa24
Diffstat (limited to 'toolbox/md5.c')
-rw-r--r--toolbox/md5.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/toolbox/md5.c b/toolbox/md5.c
index 2fb8b05..5de4d9e 100644
--- a/toolbox/md5.c
+++ b/toolbox/md5.c
@@ -4,12 +4,7 @@
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <md5.h>
-
-/* When this was written, bionic's md5.h did not define this. */
-#ifndef MD5_DIGEST_LENGTH
-#define MD5_DIGEST_LENGTH 16
-#endif
+#include <openssl/md5.h>
static int usage()
{
@@ -30,7 +25,6 @@ static int do_md5(const char *path)
return -1;
}
- /* Note that bionic's MD5_* functions return void. */
MD5_Init(&md5_ctx);
while (1) {