On Tue, Oct 11, 2016 at 11:14:01AM -0400, Dan Collins wrote:
> But other modules may work fine with these older versions of the library.
> And, without testers reporting these failures, you wouldn't know that
> Crypt::PKCS10 is failing on those platforms!
> I suspect that you want to probe for the OpenSSL version at the Makefile.PL
> stage, and if there is an insufficient version, fail there.
Perhaps `openssl version` is what you need. It looks like the format is
consistently simple across time:
OpenSSL 1.0.1t 3 May 2016
OpenSSL 0.9.7e 25 Oct 2004
Extract the \d+\.\d+\.\d+ bit and compare it to the minimum acceptable
in Makefile.PL, and exit(0) before writing Makefile if it's too ancient.
David Cantrell | Bourgeois reactionary pig
Safety tip: never strap firearms to a hamster