summaryrefslogtreecommitdiff
path: root/src/cmd/gc/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gc/md5.c')
-rw-r--r--src/cmd/gc/md5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/gc/md5.c b/src/cmd/gc/md5.c
index bbd4e298f..0051ac964 100644
--- a/src/cmd/gc/md5.c
+++ b/src/cmd/gc/md5.c
@@ -63,7 +63,7 @@ md5write(MD5 *d, uchar *p, int nn)
}
uint64
-md5sum(MD5 *d)
+md5sum(MD5 *d, uint64 *hi)
{
uchar tmp[64];
int i;
@@ -87,6 +87,8 @@ md5sum(MD5 *d)
if(d->nx != 0)
fatal("md5sum");
+ if(hi != nil)
+ *hi = d->s[2] | ((uint64)d->s[3]<<32);
return d->s[0] | ((uint64)d->s[1]<<32);
}