On 2026-06-28 18:39:08 [+0200], Dennis Preiser wrote:
> --- mutt-2.4.0_orig/mutt_ssl.h        2026-06-12 07:03:22
> +++ mutt-2.4.0/mutt_ssl.h     2026-06-28 18:00:20
> @@ -26,4 +26,12 @@ int mutt_ssl_socket_setup(CONNECTION *conn);
>  int mutt_ssl_socket_setup(CONNECTION *conn);
>  #endif
>  
> +#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.

> +#else
> +#    define mutt_get_asn1_string_length(str) (str)->length
> +#    define mutt_get_asn1_string_data(str) (str)->data
> +#endif
> +
>  #endif /* _MUTT_SSL_H_ */

Sebastian

Reply via email to