Rainer Jung in gmane.comp.apache.devel (Fri, 21 Apr 2017 00:29:38
+0200):
>Thanks for the analysis. So the following patch on trunk works for me 
>when using OpenSSL 1.0.1e (on Solaris 10):
>
>Index: support/ab.c
>===================================================================
>--- support/ab.c        (revision 1792155)
>+++ support/ab.c        (working copy)
>@@ -2576,8 +2576,6 @@
>  #else
>  #if OPENSSL_VERSION_NUMBER < 0x10100000L
>      CRYPTO_malloc_init();
>-#else
>-    OPENSSL_malloc_init();
>  #endif
>  #endif
>      SSL_load_error_strings();
>
>
>The same fix should apply for 2.4.x.
>
>In addition I noticed the following glitch:
>
>Index: support/ab.c
>===================================================================
>--- support/ab.c        (revision 1792155)
>+++ support/ab.c        (working copy)
>@@ -2465,14 +2465,14 @@
>              case 'B':
>                  myhost = apr_pstrdup(cntxt, opt_arg);
>                  break;
>+            case 'm':
>+                method = CUSTOM_METHOD;
>+                method_str[CUSTOM_METHOD] = strdup(opt_arg);
>+                break;
>  #ifdef USE_SSL
>              case 'Z':
>                  ssl_cipher = strdup(opt_arg);
>                  break;
>-            case 'm':
>-                method = CUSTOM_METHOD;
>-                method_str[CUSTOM_METHOD] = strdup(opt_arg);
>-                break;
>              case 'f':
>  #if OPENSSL_VERSION_NUMBER < 0x10100000L
>                  if (strncasecmp(opt_arg, "ALL", 3) == 0) {
>
>
>The "-m" option is independent of SSL use and should be handled outside 
>of "#ifdef USE_SSL".
>
>Will apply some time over the weekend if noone does it before.

Thia fixes abs.exe with OpenSSL 1.1.0e on Windows (VC14 x64). ould you
backport it to the 2.4.x branch?

See https://www.apachelounge.com/viewtopic.php?p=35304#35304 as well.
-- 
Jan

Reply via email to