#29036 [Opn->Fbk]: imap with ssl not working on windows

From: Date: Thu, 08 Jul 2004 09:33:01 +0000
Subject: #29036 [Opn->Fbk]: imap with ssl not working on windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61892@lists.php.net to get a copy of this message
 ID:               29036
 Updated by:       sniper@php.net
 Reported By:      josef dot spangler at rz dot uni-regensburg dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: Windows
 PHP Version:      4.3.6
 New Comment:

It won't help much since we don't build the c-client library on windows
with SSL support.. And the .dsp file should be edited too, did you to
that? (give a diff for that if you did :)



Previous Comments:
------------------------------------------------------------------------

[2004-07-06 21:18:07] josef dot spangler at rz dot uni-regensburg dot
de

Description:
------------
The php_imap extension is unable to connect over ssl to an imap server.
The reason is because the ssl engine is not initialized: 
In php_imap.c Line 435 the function 
  ssl_onceonlyinit ();
is not called on windows systems. 

The following fix will correct this:
*** php_imap.c.org	Thu Jan 15 01:36:08 2004
--- php_imap.c	Thu May 06 13:28:30 2004
***************
*** 427,438 ****
  #ifndef PHP_WIN32
  	auth_link(&auth_log);		/* link in the log authenticator */
  	auth_link(&auth_md5);       /* link in the cram-md5 authenticator */

  #if HAVE_IMAP_KRB && defined(HAVE_IMAP_AUTH_GSS)
  	auth_link(&auth_gss);		/* link in the gss authenticator */
  #endif
  
  #ifdef HAVE_IMAP_SSL
  	ssl_onceonlyinit ();
- #endif
  #endif

--- 427,438 ----
  #ifndef PHP_WIN32
  	auth_link(&auth_log);		/* link in the log authenticator */
  	auth_link(&auth_md5);       /* link in the cram-md5 authenticator */

  #if HAVE_IMAP_KRB && defined(HAVE_IMAP_AUTH_GSS)
  	auth_link(&auth_gss);		/* link in the gss authenticator */
  #endif
+ #endif
  
  #ifdef HAVE_IMAP_SSL
  	ssl_onceonlyinit ();
  #endif




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29036&edit=1


Thread (5 messages)

« previous php.bugs (#61892) next »