Re: Build issue with OpenSSL >= 4.0
Francesco Giacomini <[email protected]> Sun, 28 Jun 2026 22:28:06 +0200
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Organization | INFN |
| Message-ID | <[email protected]> |
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. They were available even in 1.0.2 https://docs.openssl.org/1.0.2/man3/ASN1_STRING_length/ F.