Folks;
I had to change the return types of the crypto\bio\bss_bio.c bss_write
and bss_nwrite functions from "static size_t" to "static int" to get
openssl-0.9.5 to compile with VC++ 4.2/nasm under Win NT 4.0 sp5:
.\crypto\bio\bss_bio.c(374) : warning C4245: 'return' : conversion
from
'const int ' to 'unsigned int ', signed/unsigned mismatch
.\crypto\bio\bss_bio.c(374) : error C2220: warning treated as error -
no
object file generated
.\crypto\bio\bss_bio.c(382) : warning C4245: 'return' : conversion
from
'const int ' to 'unsigned int ', signed/unsigned mismatch
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
I also had to cast the "mask =" statements in
ASN1_STRING_set_default_mask_asc to (unsigned long):
.\crypto\asn1\a_strnid.c(107) : warning C4245: '=' : conversion from
'const int
' to 'unsigned long ', signed/unsigned mismatch
.\crypto\asn1\a_strnid.c(107) : error C2220: warning treated as error
- no objec
t file generated
.\crypto\asn1\a_strnid.c(109) : warning C4245: '=' : conversion from
'const int
' to 'unsigned long ', signed/unsigned mismatch
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Were these safe things to do? I assume that the cast is no
problem... Maybe VC++ 4.2 is just a little too old for this sort of
thing.
Henry
--
____________________________________________________________
Henry E. Thorpe
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]