Hi,

I got a compiler warning while compiling version 0.9.6 which led me to
locate a bug in the dgst.c file.  On line 227, there is a comparision

if(out_bin == -1)

where out_bin is a variable of type char.  Unfortunately, on my computer
variables of type char default to being unsigned (this seems kind of dumb,
maybe its a bug in my distro? I'm using linuxppc 2000 on a power mac.)
This means the comparision will always be false (which is what the
compiler warning was about.)  Of course, to fix this the variable just
needs to be explicitly declared as a signed char.

Frank Hess

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

Reply via email to