Skip Menu |

This queue is for tickets about the Filter-Crypto CPAN distribution.

Report information
The Basics
Id: 121970
Status: resolved
Priority: 0/
Queue: Filter-Crypto

People
Owner: Nobody in particular
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: incompatibility with openssl-1.1.0
the eclosed patch is needed for compatibility with openssl-1.1.0 (which is what is bundled with the latest strawberry perl)


diff -ru Filter-Crypto-2.07/CryptoCommon-c.inc Filter-Crypto-2.07_patched/CryptoCommon-c.inc
--- Filter-Crypto-2.07/CryptoCommon-c.inc       2015-02-28 13:21:22.000000000 +0100
+++ Filter-Crypto-2.07_patched/CryptoCommon-c.inc       2017-06-02 23:18:36.965896200 +0200
@@ -157,7 +157,7 @@
     Newxz(ctx, 1, FILTER_CRYPTO_CCTX);

     /* Allocate the cipher context. */
-    Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX);
+    ctx->cipher_ctx = EVP_CIPHER_CTX_new();

     /* Allocate a pair of SVs with enough string space to hold a salt and an
      * initialization vector (IV) respectively, and store their required
@@ -454,7 +454,7 @@
 #endif

     /* Free the cipher context. */
-    Safefree(ctx->cipher_ctx);
+    EVP_CIPHER_CTX_free(ctx->cipher_ctx);
     ctx->cipher_ctx = NULL;

     /* Free the crypto context. */

Thanks for the patch. This is now committed here: https://github.com/steve-m-hay/Filter-Crypto/commit/df34378a67bf0617e6534a5ed3b7fd49f27917e3 and will be in the next release, which I will try to get out soon.