]> granicus.if.org Git - php/commitdiff
If php is compiled --with-imap-ssl, link in the SSL authenticator from
authorChuck Hagenbuch <chagenbu@php.net>
Thu, 1 Mar 2001 07:06:54 +0000 (07:06 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Thu, 1 Mar 2001 07:06:54 +0000 (07:06 +0000)
c-client so that we can use php to make ssl imap connections.

ext/imap/config.m4
ext/imap/php_imap.c

index 84f46ca38cde7c533799bc75834bd2cf9f6b0f58..e034e29c4f806dec0c6ce3816921a73068c96889 100644 (file)
@@ -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)
index 178378e4242663bff4ec5eb69f27dce90a47bc34..010004eb6048ec97dbf2d0cfa07c504d4184e6b3 100644 (file)
@@ -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