On 04/11/14 13:18, Philip Bellino wrote: > In openssl-1.0.1h, we were able to build/execute the heartbeat_test as is. > > In Openssl-1.0.1j, we are now required to add a Configure option > “enable-unit-test” to use the heartbeat_test. > > Also, the heartbeat_test executable in 1.0.1h was about 14K in size and > in 1.0.1j(with enable-unit-test”), the executable is now 1.6M in size. > > May I ask why this was done this way for 1.0.1j? I didn’t see anything > in the CHANGES file for it.
The heartbeat_test code makes use of internal functions (i.e. white box testing). This was causing some significant problems on certain platforms (most notably Windows). Because the internal functions are not "exported" (and nor should they be), this meant that it failed to compile. IIRC there was a nasty hack in 1.0.1h which basically disabled the test on Windows. This was considered unacceptable moving forward for one of our major supported platforms, especially considering that the intention is to build more tests on the pattern of heartbeat_test. The solution was to statically link the test in order to avoid the problem. Matt ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
