From: Chuck Hagenbuch Date: Thu, 1 Mar 2001 07:06:54 +0000 (+0000) Subject: If php is compiled --with-imap-ssl, link in the SSL authenticator from X-Git-Tag: php-4.0.5RC1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2f632e1f2a2d4236dc3209a13bcbfa90dc1f70c;p=php 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. --- 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