chagenbu Wed Feb 28 23:06:54 2001 EDT Modified files: /php4/ext/imap config.m4 php_imap.c Log: 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. Index: php4/ext/imap/config.m4 diff -u php4/ext/imap/config.m4:1.24 php4/ext/imap/config.m4:1.25 --- php4/ext/imap/config.m4:1.24 Mon Feb 26 07:17:12 2001 +++ php4/ext/imap/config.m4 Wed Feb 28 23:06:54 2001 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.24 2001/02/26 15:17:12 kalowsky Exp $ +dnl $Id: config.m4,v 1.25 2001/03/01 07:06:54 chagenbu Exp $ AC_DEFUN(IMAP_INC_CHK,[if test -r "$i$1/c-client.h"; then AC_DEFINE(HAVE_IMAP2000, 1, [ ]) @@ -97,6 +97,7 @@ 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: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.61 php4/ext/imap/php_imap.c:1.62 --- php4/ext/imap/php_imap.c:1.61 Mon Feb 26 08:36:08 2001 +++ php4/ext/imap/php_imap.c Wed Feb 28 23:06:54 2001 @@ -25,7 +25,7 @@ | PHP 4.0 updates: Zeev Suraski <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: php_imap.c,v 1.61 2001/02/26 16:36:08 kalowsky Exp $ */ +/* $Id: php_imap.c,v 1.62 2001/03/01 07:06:54 chagenbu Exp $ */ #define IMAP41 @@ -443,6 +443,10 @@ 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 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]