summaryrefslogtreecommitdiff
path: root/ext/imap
diff options
context:
space:
mode:
authorChuck Hagenbuch <chagenbu@php.net>2001-03-01 07:06:54 +0000
committerChuck Hagenbuch <chagenbu@php.net>2001-03-01 07:06:54 +0000
commite2f632e1f2a2d4236dc3209a13bcbfa90dc1f70c (patch)
tree14e12447e0495f6416fe2173fa9669cc73ec5d43 /ext/imap
parent2d89bf1fcb8fddef5404ed908a20e0c0a48a12ea (diff)
downloadphp-git-e2f632e1f2a2d4236dc3209a13bcbfa90dc1f70c.tar.gz
If php is compiled --with-imap-ssl, link in the SSL authenticator from
c-client so that we can use php to make ssl imap connections.
Diffstat (limited to 'ext/imap')
-rw-r--r--ext/imap/config.m41
-rw-r--r--ext/imap/php_imap.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/ext/imap/config.m4 b/ext/imap/config.m4
index 84f46ca38c..e034e29c4f 100644
--- a/ext/imap/config.m4
+++ b/ext/imap/config.m4
@@ -97,6 +97,7 @@ PHP_ARG_WITH(imap,for IMAP support,
fi
if test "$PHP_IMAP_SSL" != "no"; then
+ AC_DEFINE(HAVE_IMAP_SSL,1,[ ])
AC_ADD_LIBPATH($PHP_SSL_LIBDIR, IMAP_SHARED_LIBADD)
AC_ADD_LIBRARY(ssl,, IMAP_SHARED_LIBADD)
AC_ADD_LIBRARY(crypto,, IMAP_SHARED_LIBADD)
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 178378e424..010004eb60 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -443,6 +443,10 @@ PHP_MINIT_FUNCTION(imap)
mail_link(&newsdriver); /* link in the news driver */
mail_link(&philedriver); /* link in the phile driver */
auth_link(&auth_log); /* link in the log authenticator */
+#ifdef HAVE_IMAP_SSL
+ ssl_onceonlyinit ();
+ auth_link (&auth_ssl); /* link in the ssl authenticator */
+#endif
#endif
mail_link(&dummydriver); /* link in the dummy driver */
#else