I tried to compile openssl 0.9.3a with VC++ 1.52, but until
now I wasn't very succesful. There are many warnings which
are threated as errors, the most eminent one is loss of data
when truncating longs to ints. For example, I fixed
md32_common.h as shown below, but there mare many
places where the same thing happens.
Questions:
- Is this the correct way to fix it? Or should the "len" argument
of HASH_UPDATE simply be changed to an "int". Yes, that
would restrict the block-size to 2^15 for 16-bit compilers but
that is no problem for me.
- Will openssl in the future properly handle 16-bit compiler
support? Or is it simply considered too old.
Regards,
--
Jan Nijtmans, CMG Arnhem B.V.
email: [EMAIL PROTECTED]
--- crypto/md32_common.h.orig Tue Jul 06 10:11:58 1999
+++ crypto/md32_common.h Tue Jul 06 10:21:24 1999
@@ -435,7 +435,7 @@
}
else
{
- c->num+=len;
+ c->num+= (int) len;
if ((sc+len) < 4) /* ugly, add char's to a word */
{
l=p[sw]; HOST_p_c2l_p(data,l,sc,len);
p[sw]=l;
@@ -458,7 +458,7 @@
}
}
- sw=len/HASH_CBLOCK;
+ sw=(int) (len/HASH_CBLOCK);
if (sw > 0)
{
#if defined(HASH_BLOCK_DATA_ORDER_ALIGNED) &&
HASH_BLOCK_DATA_ORDER_ALIGNED!=1
@@ -498,9 +498,9 @@
if (len!=0)
{
p = c->data;
- c->num = len;
- ew=len>>2; /* words to copy */
- ec=len&0x03;
+ c->num = (int) len;
+ ew=(int) (len>>2); /* words to copy */
+ ec=(int) len&0x03;
for (; ew; ew--,p++)
{
HOST_c2l(data,l); *p=l;
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]