imap-send: the subject of SSL certificate must match the host
commitb62fb077d5504deadea931fd16075729f39b8f47
authorOswald Buddenhagen <ossi@kde.org>
Fri, 15 Feb 2013 20:50:35 +0000 (15 12:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Feb 2013 05:47:22 +0000 (19 21:47 -0800)
treeef911a96c6794d12b52f84be2dfe407102ccd4d5
parent1e1fe52923a8f582c4f50b41f0dd978d5d7c9bd3
imap-send: the subject of SSL certificate must match the host

We did not check a valid certificate's subject at all, and would
have happily talked with a wrong host after connecting to an
incorrect address and getting a valid certificate that does not
belong to the host we intended to talk to.

Signed-off-by: Oswald Buddenhagen <ossi@kde.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c