$OpenBSD: patch-src_evp_c,v 1.1.1.1 2006/09/20 14:08:47 pedro Exp $
--- src/evp.c.orig	Fri Aug 11 22:50:16 2006
+++ src/evp.c	Fri Aug 11 22:51:05 2006
@@ -97,7 +97,7 @@ static int Ldigest(lua_State *L)		/** di
   EVP_MD_CTX *c = Pget(L, 1);
   EVP_MD_CTX *d = NULL;
   unsigned char digest[EVP_MAX_MD_SIZE];
-  size_t written = 0;
+  unsigned int written = 0;
   
   if (lua_isstring(L, 2))
   {  
@@ -149,7 +149,7 @@ static int Lfdigest(lua_State *L)		/** d
   const char *s = luaL_checkstring(L, 2);
   const EVP_MD *type = EVP_get_digestbyname(type_name);
   unsigned char digest[EVP_MAX_MD_SIZE];
-  size_t written = 0;
+  unsigned int written = 0;
   
   if (type == NULL) {
     luaL_argerror(L, 1, "invalid digest type");
