Refuse to run test_cipherlist unless shared library matches build
authorRichard Levitte <levitte@openssl.org>
Mon, 26 Mar 2018 09:00:05 +0000 (11:00 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 31 Mar 2018 14:36:49 +0000 (16:36 +0200)
commitcde87deafa7486f26bdf954867a6d72ca4ea06e7
tree4eb56ed77427de61ccf06c6592a5c9897d141660
parentdf5caeff335877b25a02c40a84935c7c4584e396
Refuse to run test_cipherlist unless shared library matches build

test/cipherlist_test.c is an internal consistency check, and therefore
requires that the shared library it runs against matches what it was
built for.  test/recipes/test_cipherlist.t is made to refuse running
unless library version and build version match.

This adds a helper program test/versions.c, that simply displays the
library and the build version.

Partially fixes #5751

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5753)
test/build.info
test/recipes/80-test_cipherlist.t
test/versions.c [new file with mode: 0644]
util/perl/OpenSSL/Test.pm