On Sun, Jun 28, 2026 at 06:53:44PM +0200, Sebastian Andrzej Siewior wrote:
> On 2026-06-28 18:39:08 [+0200], Dennis Preiser wrote:
> > +#if (defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 
> > 0x40000000L)
> > +#    define mutt_get_asn1_string_length(str) ASN1_STRING_length((str))
> > +#    define mutt_get_asn1_string_data(str) ASN1_STRING_get0_data((str))
> 
> What kind of compatibility do you expect? ASN1_STRING_length and
> ASN1_STRING_get0_data have been introduced as of 3.0.0. You could use
> this directly without this 4.0 version check/ indirection.

To be honest, I haven't looked into when these features became
available, either for OpenSSL or for LibreSSL.

The code includes checks for OpenSSL < 0x10100000L, so I assume that
mutt should also work with older versions of OpenSSL. Some kind of check
therefore seems necessary.

Dennis

Reply via email to