Updates from 0.9.8-stable branch.
diff --git a/apps/dgst.c b/apps/dgst.c
index 2e7b079..5d82cb2 100644
--- a/apps/dgst.c
+++ b/apps/dgst.c
@@ -493,7 +493,7 @@
 	else 
 		{
 		BIO_write(out,title,strlen(title));
-		for (i=0; i<len; i++)
+		for (i=0; i<(int)len; i++)
 			{
 			if (sep && (i != 0))
 				BIO_printf(out, ":");