Add OpenSSL version check and tests.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>