X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=md5.c;h=738d81a824bf1ebb4593c60f46d65596084a1458;hb=d8a024fe35f4be56f4ac17fa68aee2264960a8ac;hp=343ad8fc893cdd29bbc208c74b7e044f7499d857;hpb=dfa6ab137e7565bd1afc03b045fff4aa737a7c9e;p=secnet.git diff --git a/md5.c b/md5.c index 343ad8f..738d81a 100644 --- a/md5.c +++ b/md5.c @@ -3,6 +3,7 @@ * The algorithm is due to Ron Rivest. This code was * written by Colin Plumb in 1993, no copyright is claimed. * This code is in the public domain; do with it what you wish. + * [I interpet this as a blanket permision -iwj.] * * Equivalent code is available from RSA Data Security, Inc. * This code has been tested against that, and is equivalent, @@ -241,7 +242,7 @@ static void *md5_init(void) { struct MD5Context *ctx; - ctx=safe_malloc(sizeof(*ctx),"md5_init"); + NEW(ctx); MD5Init(ctx); return ctx; @@ -278,7 +279,7 @@ void md5_module(dict_t *dict) uint8_t digest[16]; int i; - st=safe_malloc(sizeof(*st),"md5_module"); + NEW(st); st->cl.description="md5"; st->cl.type=CL_HASH; st->cl.apply=NULL;