chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: fix up the type of string buffers
[secnet.git]
/
md5.c
diff --git
a/md5.c
b/md5.c
index 8c962d9a4bac76ee2bf09f9230964c5c14b6f8f0..0ce120004490026b46beb0d1966cf00e15632dd5 100644
(file)
--- a/
md5.c
+++ b/
md5.c
@@
-267,12
+267,11
@@
struct md5 {
struct hash_if ops;
};
struct hash_if ops;
};
-init_module md5_module;
void md5_module(dict_t *dict)
{
struct md5 *st;
void *ctx;
void md5_module(dict_t *dict)
{
struct md5 *st;
void *ctx;
- string_t testinput="12345\n";
+
c
string_t testinput="12345\n";
uint8_t expected[16]=
{0xd5,0x77,0x27,0x3f,0xf8,0x85,0xc3,0xf8,
0x4d,0xad,0xb8,0x57,0x8b,0xb4,0x13,0x99};
uint8_t expected[16]=
{0xd5,0x77,0x27,0x3f,0xf8,0x85,0xc3,0xf8,
0x4d,0xad,0xb8,0x57,0x8b,0xb4,0x13,0x99};
@@
-296,7
+295,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");
}
}
}
}
}
}