~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import release 0.1.14
[secnet]
/
md5.c
diff --git
a/md5.c
b/md5.c
index
ab00d26
..
043c9c1
100644
(file)
--- a/
md5.c
+++ b/
md5.c
@@
-20,12
+20,8
@@
* Still in the public domain.
*/
* Still in the public domain.
*/
-#include <string.h> /* for memcpy() */
-#include <sys/types.h> /* for stupid systems */
-#include <netinet/in.h> /* for ntohl() */
-
#include "secnet.h"
#include "secnet.h"
-#include
"config.h"
+#include
<string.h> /* for memcpy() */
#include "md5.h"
#ifdef WORDS_BIGENDIAN
#include "md5.h"
#ifdef WORDS_BIGENDIAN
@@
-283,7
+279,7
@@
void md5_module(dict_t *dict)
uint8_t digest[16];
int i;
uint8_t digest[16];
int i;
- st=safe_malloc(sizeof(*st),"
netlink
_module");
+ st=safe_malloc(sizeof(*st),"
md5
_module");
st->cl.description="md5";
st->cl.type=CL_HASH;
st->cl.apply=NULL;
st->cl.description="md5";
st->cl.type=CL_HASH;
st->cl.apply=NULL;
@@
-300,7
+296,7
@@
void md5_module(dict_t *dict)
md5_final(ctx,digest);
for (i=0; i<16; i++) {
if (digest[i]!=expected[i]) {
md5_final(ctx,digest);
for (i=0; i<16; i++) {
if (digest[i]!=expected[i]) {
- fatal("md5 module failed self-test
\n
");
+ fatal("md5 module failed self-test");
}
}
}
}
}
}