diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-03 16:39:31 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-03 16:39:31 +0000 |
commit | 421d9e59416850968707dfec7a665cb0211b8d1c (patch) | |
tree | cee92b2a5cd0ea7298aab569ed944fdeb59dbdf2 /libbb/md5.c | |
parent | 101a470068a62a70489797a3fdfa5084af80106e (diff) | |
download | busybox-w32-421d9e59416850968707dfec7a665cb0211b8d1c.tar.gz busybox-w32-421d9e59416850968707dfec7a665cb0211b8d1c.tar.bz2 busybox-w32-421d9e59416850968707dfec7a665cb0211b8d1c.zip |
- move buffer allocation schemes to libbb.h
- include the correct headers: applets need busybox.h while lib* need libbb.h
Diffstat (limited to 'libbb/md5.c')
-rw-r--r-- | libbb/md5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/md5.c b/libbb/md5.c index 8cec88535..b5aa89fc6 100644 --- a/libbb/md5.c +++ b/libbb/md5.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * md5.c - Compute MD5 checksum of strings according to the | 2 | * md5.c - Compute MD5 checksum of strings according to the |
3 | * definition of MD5 in RFC 1321 from April 1992. | 3 | * definition of MD5 in RFC 1321 from April 1992. |
4 | * | 4 | * |
5 | * Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. | 5 | * Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. |
6 | * | 6 | * |
7 | * Copyright (C) 1995-1999 Free Software Foundation, Inc. | 7 | * Copyright (C) 1995-1999 Free Software Foundation, Inc. |
8 | * Copyright (C) 2001 Manuel Novoa III | 8 | * Copyright (C) 2001 Manuel Novoa III |
9 | * Copyright (C) 2003 Glenn L. McGrath | 9 | * Copyright (C) 2003 Glenn L. McGrath |
@@ -19,7 +19,7 @@ | |||
19 | #include <string.h> | 19 | #include <string.h> |
20 | #include <unistd.h> | 20 | #include <unistd.h> |
21 | 21 | ||
22 | #include "busybox.h" | 22 | #include "libbb.h" |
23 | 23 | ||
24 | # if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3 | 24 | # if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3 |
25 | # define MD5_SIZE_VS_SPEED 2 | 25 | # define MD5_SIZE_VS_SPEED 2 |
@@ -71,7 +71,7 @@ void md5_begin(md5_ctx_t *ctx) | |||
71 | * starting at BUFFER. | 71 | * starting at BUFFER. |
72 | * It is necessary that LEN is a multiple of 64!!! | 72 | * It is necessary that LEN is a multiple of 64!!! |
73 | */ | 73 | */ |
74 | void md5_hash_block(const void *buffer, size_t len, md5_ctx_t *ctx) | 74 | static void md5_hash_block(const void *buffer, size_t len, md5_ctx_t *ctx) |
75 | { | 75 | { |
76 | uint32_t correct_words[16]; | 76 | uint32_t correct_words[16]; |
77 | const uint32_t *words = buffer; | 77 | const uint32_t *words = buffer; |