aboutsummaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorRobert Shearman <robertshearman@gmail.com>2008-07-09 22:29:00 +0100
committerJunio C Hamano <gitster@pobox.com>2008-07-25 21:51:30 -0700
commit684ec6c63cd92a3755500b3b63f3d5ad9f6828b2 (patch)
treee88bd07e6ff3a3fc92d990721bb6aec2b61a1cb2 /git-compat-util.h
parenta0406b94d57e8443a7b31b5412763cac4ddb5d21 (diff)
downloadgit-684ec6c63cd92a3755500b3b63f3d5ad9f6828b2.tar.gz
git-684ec6c63cd92a3755500b3b63f3d5ad9f6828b2.tar.xz
git-imap-send: Support SSL
Allow SSL to be used when a imaps:// URL is used for the host name. Also, automatically use TLS when not using imaps:// by using the IMAP STARTTLS command, if the server supports it. Tested with Courier and Gimap IMAP servers. Signed-off-by: Robert Shearman <robertshearman@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index cf89cdf45..fbf791a63 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -99,6 +99,11 @@
#include <iconv.h>
#endif
+#ifndef NO_OPENSSL
+#include <openssl/ssl.h>
+#include <openssl/err.h>
+#endif
+
/* On most systems <limits.h> would have given us this, but
* not on some systems (e.g. GNU/Hurd).
*/