Sorry, I forgot to mention that this was in OpenSSL 0.9.6a, dated April 5, 
2001.

IF

At 01:21 PM 4/23/2001 -0700, you wrote:
>Compiling rsa_oaep.c is blowing up on the MSVC.Net compiler with:
>
>crypto\rsa\rsa_oaep.c(144) : error C2220: warning treated as error - no 
>object file generated
>crypto\rsa\rsa_oaep.c(144) : warning C4244: '=' : conversion from 'long' 
>to 'unsigned char', pos
>sible loss of data
>crypto\rsa\rsa_oaep.c(144) : warning C4244: '=' : conversion from 'long' 
>to 'unsigned char', pos
>sible loss of data
>crypto\rsa\rsa_oaep.c(145) : warning C4244: '=' : conversion from 'long' 
>to 'unsigned char', pos
>sible loss of data
>crypto\rsa\rsa_oaep.c(145) : warning C4244: '=' : conversion from 'long' 
>to 'unsigned char', pos
>sible loss of data
>NMAKE : fatal error U1077: 'cl' : return code '0x2'
>
>This is easily fixed:
>
>crypto\rsa\rsa_oaep.c
>144,145c144,145
><       cnt[0] = (i >> 24) & 255, cnt[1] = (i >> 16) & 255,
><         cnt[2] = (i >> 8) & 255, cnt[3] = i & 255;
>---
> >       cnt[0] = (unsigned char)(i >> 24), cnt[1] = (unsigned char)(i >> 16),
> >         cnt[2] = (unsigned char)(i >> 8), cnt[3] = (unsigned char)i;


--
Isaac Foraker, [EMAIL PROTECTED], Sr. Streaming Software Engineer, 
Digital Island
http://www.digitalisland.net/ - Thousand Oaks, California 1.805.370.2768
This message may contain privileged information.  Breech confidentiality
and all the forces of the United States government will hunt you down,
no matter where you hide.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to