]> git.ipfire.org Git - thirdparty/git.git/commit
imap-send: gracefully fail if CRAM-MD5 authentication is requested without OpenSSL
authorAditya Garg <gargaditya08@live.com>
Fri, 20 Jun 2025 06:40:26 +0000 (12:10 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jun 2025 15:11:16 +0000 (08:11 -0700)
commitb9e766604df2c50b2f721479bb405409db3344d1
tree10365f6428c06ce57ca77f00d6759484086843ae
parentac4e02c5030c05d71b20127a7118b0a0fc3c1c64
imap-send: gracefully fail if CRAM-MD5 authentication is requested without OpenSSL

Unlike PLAIN, XOAUTH2 and OAUTHBEARER, CRAM-MD5 authentication is not
supported by libcurl and requires OpenSSL. If the user tries to use
CRAM-MD5 authentication without OpenSSL, the previous behaviour was to
attempt to authenticate and fail with a die(error). Handle this in a
better way by first checking if OpenSSL is available and then attempting
to authenticate. If OpenSSL is not available, print an error message and
exit gracefully.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c