summaryrefslogtreecommitdiffstats
path: root/src/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/md5.c')
-rw-r--r--src/md5.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/md5.c b/src/md5.c
index 11af2d8..7ed7a88 100644
--- a/src/md5.c
+++ b/src/md5.c
@@ -1,5 +1,5 @@
/* iksemel (XML parser for Jabber)
-** Copyright (C) 2000-2003 Gurer Ozen <madcat@e-kolay.net>
+** Copyright (C) 2000-2003 Gurer Ozen
** This code is free software; you can redistribute it and/or
** modify it under the terms of GNU Lesser General Public License.
*/
@@ -74,7 +74,7 @@ void iks_md5_reset(iksmd5 *md5)
iksmd5 *iks_md5_new(void)
{
- iksmd5 *md5 = malloc(sizeof(iksmd5));
+ iksmd5 *md5 = iks_malloc(sizeof(iksmd5));
if (!md5)
return NULL;
@@ -124,7 +124,7 @@ void iks_md5_hash(iksmd5 *md5, const unsigned char *data, size_t slen, int finis
void iks_md5_delete(iksmd5 *md5)
{
- free(md5);
+ iks_free(md5);
}
void iks_md5_digest(iksmd5 *md5, unsigned char *digest)
@@ -137,7 +137,7 @@ void iks_md5_digest(iksmd5 *md5, unsigned char *digest)
void iks_md5_print(iksmd5 *md5, char *buf)
{
- int i;
+ int i;
unsigned char digest[16];
iks_md5_digest(md5, digest);
@@ -186,4 +186,3 @@ static void iks_md5_compute(iksmd5 *md5)
for (i = 0; i < 4; ++i)
md5->state[i] += R[i];
}
-