CC: | "Farley, Paul" <Paul.Farley [...] stratus.com>, "Green, Paul" <Paul.Green [...] stratus.com> |
Subject: | Runtime failure in version 1.81 when OpenSSL was not built with Engine support |
Date: | Fri, 5 May 2017 19:58:57 +0000 |
To: | "bug-Net-SSLeay [...] rt.cpan.org" <bug-Net-SSLeay [...] rt.cpan.org> |
From: | "Green, Paul" <Paul.Green [...] stratus.com> |
Gentle Net::SSLeay maintainers,
I previously a related bug (#120330) back on February 22 of this year, which you kindly fixed on March 1, and released in Net::SSLeay version 1.81. Many thanks. That cleared up the first issue. Now I have run into the next problem, which is that the code is still referencing ENGINE-related functions at runtime. Our standard version of OpenSSL doesn't include Engine support, so that's a problem. Not sure how I missed this back in February.
This change should have no effect on any current users of Net::SSLeay because up until this point, the package assumed that ENGINE support was always present. All my two patches do is to enable people who do not have ENGINE support in their OpenSSL to still use Net::SSLeay.
Here is the patch to version 1.81 to resolve this issue.
diff -ur Net-SSLeay-1.81-0/SSLeay.xs Net-SSLeay-1.81-1/SSLeay.xs
--- Net-SSLeay-1.81-0/SSLeay.xs 2017-05-05 15:53:43 -0400
+++ Net-SSLeay-1.81-1/SSLeay.xs 2017-05-05 15:55:26 -0400
@@ -50,6 +50,7 @@
* 1/ SSleay.xs is expected to build/pass test suite
* - with openssl 0.9.6 and newer versions
* - with perl 5.8 and newer versions
+ * - with or without ENGINE support
*
* 2/ Fix all compiler warnings - we expect 100% clean build
*
@@ -2393,6 +2394,7 @@
RETVAL
#if OPENSSL_VERSION_NUMBER >= 0x0090700fL
+#ifndef OPENSSL_NO_ENGINE
#define REM5 "NOTE: requires 0.9.7+"
void
@@ -2410,6 +2412,7 @@
ENGINE * e
int flags
+#endif /* OPENSSL_NO_ENGINE */
#endif /* OPENSSL_VERSION_NUMBER >= 0x0090700fL */
void
** end patch **
You may mark my previous bug, #120330 as resolved by version 1.81. That change was correct, just not complete enough.
Thanks
PG
--
Sr. Technical Consultant, Stratus Technologies, Inc.
Maynard, MA 01754-1482