[prev in list] [next in list] [prev in thread] [next in thread] 

List:       enlightenment-svn
Subject:    E CVS: embrace tsauerbeck
From:       enlightenment-cvs () lists ! sourceforge ! net
Date:       2005-01-30 16:29:49
Message-ID: E1CvHxN-0005X6-2L () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Enlightenment CVS committal

Author  : tsauerbeck
Project : misc
Module  : embrace

Dir     : misc/embrace/src/plugins/pop3


Modified Files:
	pop3.c 


Log Message:
HAVE_ECORE_CON_SSL was superseeded by ecore_con_ssl_available_get()
===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/plugins/pop3/pop3.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- pop3.c	24 Oct 2004 20:20:45 -0000	1.14
+++ pop3.c	30 Jan 2005 16:29:48 -0000	1.15
@@ -1,5 +1,5 @@
 /*
- * $Id: pop3.c,v 1.14 2004/10/24 20:20:45 tsauerbeck Exp $
+ * $Id: pop3.c,v 1.15 2005/01/30 16:29:48 tsauerbeck Exp $
  *
  * Copyright (C) 2004 Embrace project.
  *
@@ -170,10 +170,9 @@
 		return false;
 	}
 
-#ifdef HAVE_OPENSSL
-	if (mailbox_property_get (mb, "ssl"))
+	if (ecore_con_ssl_available_get () &&
+	    mailbox_property_get (mb, "ssl"))
 		type |= ECORE_CON_USE_SSL;
-#endif
 
 	server = ecore_con_server_connect (type, host, port, mb);
 
@@ -233,15 +232,15 @@
 	assert (edb);
 	assert (root);
 
-#ifdef HAVE_OPENSSL
-	/* check whether OpenSSL should be used */
-	snprintf (key, sizeof (key), "%s/ssl", root);
+	if (ecore_con_ssl_available_get ()) {
+		/* check whether OpenSSL should be used */
+		snprintf (key, sizeof (key), "%s/ssl", root);
 
-	if (!e_db_int_get (edb, key, &use_ssl))
-		use_ssl = 0;
+		if (!e_db_int_get (edb, key, &use_ssl))
+			use_ssl = 0;
 
-	mailbox_property_set (mb, "ssl", (int *) use_ssl);
-#endif
+		mailbox_property_set (mb, "ssl", (int *) use_ssl);
+	}
 
 	/* read server */
 	snprintf (key, sizeof (key), "%s/host", root);




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic