Hello,

Does anyone know if mttest (crypto/threads/mttest.c) works with a FIPS- capable OpenSSL?

I am trying it on Mac OS X 10.5.8. I am not sure if the test results are expected or not.

Am I running or building mttest incorrectly?

Here are the details:

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.5.8
BuildVersion:   9L30

$ openssl-0.9.8o-fips/bin/openssl version
OpenSSL 0.9.8o-fips 01 Jun 2010

$ FIPSLD_CC=gcc ./openssl-0.9.8o-fips/bin/fipsld -DPTHREADS -I./ openssl-0.9.8o-fips/include -arch i386 -Wall -g -o mttest mttest.c ./ openssl-0.9.8o-fips/lib/libssl.a ./openssl-0.9.8o-fips/lib/ libcrypto.a ./openssl-0.9.8o-fips/lib/libssl.a -pthreads ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c: In function ‘FINGERPRINT_premain’: ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c:94: warning: implicit declaration of function ‘_exit’ ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c:94: warning: incompatible implicit declaration of built-in function ‘_exit’ ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c:109: warning: incompatible implicit declaration of built-in function ‘_exit’ ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c:115: warning: incompatible implicit declaration of built-in function ‘_exit’
mttest.c: In function ‘print_stats’:
mttest.c:154: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:156: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:158: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:160: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:161: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:162: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:163: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c: In function ‘FINGERPRINT_premain’: ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c:94: warning: implicit declaration of function ‘_exit’ ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c:94: warning: incompatible implicit declaration of built-in function ‘_exit’ ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c:109: warning: incompatible implicit declaration of built-in function ‘_exit’ ./openssl-0.9.8o-fips/bin/../lib/fips_premain.c:115: warning: incompatible implicit declaration of built-in function ‘_exit’
mttest.c: In function ‘print_stats’:
mttest.c:154: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:156: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:158: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:160: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:161: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:162: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’ mttest.c:163: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘long int’

$ ./mttest
SSL_load_verify_locations
Client SSL_CTX stats then free it
   0 items in the session cache
   0 client connects (SSL_connect())
   0 client connects that finished
   0 server connects (SSL_accept())
   0 server connects that finished
   0 session cache hits
   0 session cache misses
   0 session cache timeouts
Server SSL_CTX stats then free it
   0 items in the session cache
   0 client connects (SSL_connect())
   0 client connects that finished
   0 server connects (SSL_accept())
   0 server connects that finished
   0 session cache hits
   0 session cache misses
   0 session cache timeouts
done free

$ otool -L mttest
mttest:
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.5)

Thanks,

Bill





______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to