Re: [PATCH] imap-send: use ASN1_STRING_length
- From
- Aniket Gupta <aniketgupta3001@gmail.com>
- Date
- Oct 12, 2026, 15:17 UTC
- Message-ID
- <20261012151748.62723-1-aniketgupta3001@gmail.com>
- In-Reply-To
- <20261011210928.3900020-1-xfding@google.com>
Hello Xiangfei,
> + int pat_len = ASN1_STRING_length(asn1_str);
It seems that with OpenSSL 4.1.0-beta2 this is deprecated (ASN1_STRING_get_length() is the replacement), so it warns, and fails with DEVELOPER=1. The patch adds a second use at the error message. Beat Bolli has a series from 7 Sept ("imap-send: future proofing and two correctness fixes") that also touches host_matches(), maybe we can check how the two can fit together?Thanks, Aniket