Thread View: linux.kernel.git
3 messages
3 total messages
Started by Aniket Gupta
Mon, 12 Oct 2026 15:17
Re: [PATCH] imap-send: use ASN1_STRING_length
Author: Aniket Gupta
Date: Mon, 12 Oct 2026 15:17
Date: Mon, 12 Oct 2026 15:17
9 lines
8280 bytes
8280 bytes
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
Re: [PATCH] imap-send: use ASN1_STRING_length
Author: Junio C Hamano
Date: Mon, 12 Oct 2026 17:18
Date: Mon, 12 Oct 2026 17:18
30 lines
10696 bytes
10696 bytes
Aniket Gupta <aniketgupta3001@gmail.com> writes:
> 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
[jch: rewrapped long unreadable lines]
That topic also needs rework, unfortunately.
https://lore.kernel.org/git/20260907211210.2621693-1-dev+git@drbeat.li/
I guess we can salvage the patches 1 and 2 with fairly trivial
changes, namely with the style fix in [1/3], and pointer arithmetic
that breaks later free() fix in [2/3]. I am not sure how involved
it would be to fix [3/3] in such a way suggested by brian in the
thread.
Thanks for reminding us of the old thread.
Re: [PATCH] imap-send: use ASN1_STRING_length
Author: Beat Bolli
Date: Mon, 12 Oct 2026 20:09
Date: Mon, 12 Oct 2026 20:09
37 lines
6786 bytes
6786 bytes
On 12.10.2026 19:18, Junio C Hamano wrote:
> Aniket Gupta <aniketgupta3001@gmail.com> writes:
>
>> 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
>
> [jch: rewrapped long unreadable lines]
>
> That topic also needs rework, unfortunately.
>
> https://lore.kernel.org/git/20260907211210.2621693-1-dev+git@drbeat.li/
>
> I guess we can salvage the patches 1 and 2 with fairly trivial
> changes, namely with the style fix in [1/3], and pointer arithmetic
> that breaks later free() fix in [2/3]. I am not sure how involved
> it would be to fix [3/3] in such a way suggested by brian in the
> thread.
>
> Thanks for reminding us of the old thread.
>
I'm working on a new branch that uses OpenSSL's built-in hostname
verification. All this low level ASN.1 code will disappear as a result.
Best regards, Beat
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads