]> Kevux Git Server - rit/commit
imap-send: use the OpenSSL API to access the subject common name
authorBeat Bolli <dev+git@drbeat.li>
Wed, 11 Mar 2026 22:10:26 +0000 (23:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Mar 2026 22:25:15 +0000 (15:25 -0700)
commit08fd302fc4b8eaf0bb32856231a5fb46430e3c7e
treeafb85ccebb6cb4409f8feb46efa558efd85f44dd
parentdfcdd0b960fc1efd2fe19e97b973b435727b4c42
imap-send: use the OpenSSL API to access the subject common name

The OpenSSL 4.0 master branch has deprecated the
X509_NAME_get_text_by_NID function. Use the recommended replacement APIs
instead. They have existed since OpenSSL v1.1.0.

Take care to get the constness right for pre-4.0 versions.

Signed-off-by: Beat Bolli <dev+git@drbeat.li>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c