Alt-Digest-MD5-OpenSSL
view release on metacpan or search on metacpan
0.06 2026-03-25T09:59:10+01:00
- Add support for OpenSSL 3.5.
- Add support for threads.
- Improve cpanfile with test dependencies.
0.05 2026-03-24T11:47:39+01:00
- Add LICENSE file.
- Add meta information to Makefile.PL.
- Update copyright years.
0.04 2024-02-08T14:53:57+01:00
- Fix LICENSE to same as original Digest::MD5.
- Improve doc.
MD5_COMPAT_CTX *context = (MD5_COMPAT_CTX *)mg->mg_ptr;
PERL_UNUSED_ARG(params);
New(55, new_context, 1, MD5_COMPAT_CTX);
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
new_context->ctx = EVP_MD_CTX_new();
if (new_context->ctx == NULL || !EVP_MD_CTX_copy_ex(new_context->ctx, context->ctx)) {
Safefree(new_context);
croak("Failed to duplicate MD5 context for thread");
}
new_context->Nl = context->Nl;
#else
memcpy(new_context, context, sizeof(MD5_COMPAT_CTX));
#endif
mg->mg_ptr = (char *)new_context;
return 0;
}
( run in 0.777 second using v1.01-cache-2.11-cpan-c966e8aa7e8 )