Update of /cvsroot/mahogany/M/lib/imap/src/c-client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29785/lib/imap/src/c-client

Modified Files:
        auth_md5.c 
Log Message:
make it compile even if MD5ENABLE is not defined (this is for server only anyhow)

Index: auth_md5.c
===================================================================
RCS file: /cvsroot/mahogany/M/lib/imap/src/c-client/auth_md5.c,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -b -u -2 -r1.1.1.2 -r1.2
--- auth_md5.c  28 Apr 2004 22:38:08 -0000      1.1.1.2
+++ auth_md5.c  2 May 2004 12:30:58 -0000       1.2
@@ -69,6 +69,8 @@
 {
   struct stat sbuf;
+#ifdef MD5ENABLE
                                /* server forbids MD5 if no MD5 enable file */
   if (stat (MD5ENABLE,&sbuf)) auth_md5.server = NIL;
+#endif /* MD5ENABLE */
   return T;                    /* MD5 is otherwise valid */
 }
@@ -178,4 +180,5 @@
 char *auth_md5_pwd (char *user)
 {
+#ifdef MD5ENABLE
   struct stat sbuf;
   int fd = open (MD5ENABLE,O_RDONLY,NIL);
@@ -207,4 +210,7 @@
   }
   return ret;                  /* return password */
+#else /* !defined(MD5ENABLE) */
+  return NIL;
+#endif /* MD5ENABLE/!MD5ENABLE */
 }
 



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to