Hello,

I am trying to build a C++ application using OpenSSL-fips-1.0. The application compiles and runs fine (sans FIPS_mode_set()) when simply compiled using g++.

However, when "CC=gcc fipsld" is used, the following error results:

/usr/local/ssl/bin/../lib/fips_premain.c:66: error: initializer-string for array of chars is too long

The line in question (line 66 of fips_premain.c) is:

static const unsigned char FINGERPRINT_ascii_value[40] = HMAC_SHA1_SIG;

As far as I can tell this looks like an off by one error (no room in array for null terminator). Of course, I cannot modify fips_premain.c and still run fipsld.

My compiler version is: g++ (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)

This is trivial to test using the following program:

        int main(int argc, char **argv) {
                return 0;
        }

Am I missing something?

Thanks,

Marty

--
Marty Lamb
Rajant Corporation
610-873-6788
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to