Merge branch 'master' of ssh://git.citadel.org:/appl/gitroot/citadel
authorArt Cancro <ajc@citadel.org>
Mon, 28 Aug 2017 23:09:28 +0000 (19:09 -0400)
committerArt Cancro <ajc@citadel.org>
Mon, 28 Aug 2017 23:09:28 +0000 (19:09 -0400)
citadel/Makefile.in
citadel/config.c
citadel/config.h
citadel/configure.ac
citadel/control.c
citadel/debian/citadel-server.install
citadel/funambol_newmail_soap.xml [deleted file]
citadel/include/citadel_dirs.h
citadel/utillib/citadel_dirs.c
webcit/crypto.c
webcit/debian/control

index 6f8a27d6fae1562f4d1d7ca20f92182fbef04c33..34458a61cbe045570d9d49fabb0d78f204bc51cc 100644 (file)
@@ -214,7 +214,7 @@ install-data:
                 network/systems; do \
                $(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/$$i; \
        done
-       @for i in funambol_newmail_soap.xml notify_about_newmail.js public_clients citadel_urlshorteners.rc \
+       @for i in notify_about_newmail.js public_clients citadel_urlshorteners.rc \
                 `find $(srcdir)/help $(srcdir)/messages $(srcdir)/network -type f | grep -v .svn`; do \
                echo $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
                $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
@@ -241,7 +241,7 @@ install-data-new:
        done
 
        $(srcdir)/mkinstalldirs $(DESTDIR)$(HELP_DIR)/help
-       @for i in  funambol_newmail_soap.xml notify_about_newmail.js \
+       @for i in  notify_about_newmail.js \
                 `find $(srcdir)/help -type f | grep -v .svn`; do \
                echo $(INSTALL_DATA) $$i $(DESTDIR)$(HELP_DIR)/$$i; \
                $(INSTALL_DATA) $$i $(DESTDIR)$(HELP_DIR)/$$i; \
index 76a342c7a4c4a2473fd5940586928a04fee1248e..d9eee63e739b40a00d8880986c7c933c07d22944 100644 (file)
@@ -207,10 +207,6 @@ void migrate_legacy_config(struct legacy_config *lconfig)
        CtdlSetConfigInt(       "c_pftcpdict_port"      ,       lconfig->c_pftcpdict_port       );
        CtdlSetConfigInt(       "c_managesieve_port"    ,       lconfig->c_managesieve_port     );
        CtdlSetConfigInt(       "c_auth_mode"           ,       lconfig->c_auth_mode            );
-       CtdlSetConfigStr(       "c_funambol_host"       ,       lconfig->c_funambol_host        );
-       CtdlSetConfigInt(       "c_funambol_port"       ,       lconfig->c_funambol_port        );
-       CtdlSetConfigStr(       "c_funambol_source"     ,       lconfig->c_funambol_source      );
-       CtdlSetConfigStr(       "c_funambol_auth"       ,       lconfig->c_funambol_auth        );
        CtdlSetConfigInt(       "c_rbl_at_greeting"     ,       lconfig->c_rbl_at_greeting      );
        CtdlSetConfigStr(       "c_master_user"         ,       lconfig->c_master_user          );
        CtdlSetConfigStr(       "c_master_pass"         ,       lconfig->c_master_pass          );
index 8419a8c79c70f9b990a8b5ab1de62c6091f0c87e..2dc63c51f7b7efb61991402b7a4e5c07f8bda8dc 100644 (file)
@@ -81,10 +81,10 @@ struct legacy_config {
        int c_pftcpdict_port;
        int c_managesieve_port;
        int c_auth_mode;
-       char c_funambol_host[256];
-       int c_funambol_port;
-       char c_funambol_source[256];
-       char c_funambol_auth[256];
+       char c_niu_8[256];
+       int c_niu_9;
+       char c_niu_10[256];
+       char c_niu_11[256];
        char c_rbl_at_greeting;
        char c_master_user[32];
        char c_master_pass[32];
index 32c7974d991620e2c26c7e3c079cf22a5d083f92..94ba60de5ae4ea528232e6edcd66ea9ccc1cc770 100644 (file)
@@ -261,7 +261,6 @@ AC_ARG_WITH(ssl,
        ]
 )
 AC_ARG_WITH(with_ldap, [  --with-ldap             use OpenLDAP client library])
-dnl AC_ARG_WITH(with_libdspam, [  --with-libdspam         use libdspam mail spam scanning library])
 AC_ARG_WITH(with_gc, [  --with-gc             use the Boehm-Demers-Weiser garbage collection library])
 
 if test "x$with_db" != xno -a "x$with_db" != xyes -a "$with_db"; then
@@ -722,21 +721,6 @@ fi
 
 
 
-dnl Checks for the libdspam mail spam scanning library.
-dnl if test "x$with_libdspam" != xno ; then
-dnl    AC_CHECK_HEADERS(dspam/libdspam.h,
-dnl            [AC_CHECK_LIB(dspam, dspam_init,
-dnl                    [ok_libdspam=yes],,
-dnl    )])
-dnl fi
-dnl 
-dnl if test "x$ok_libdspam" = xyes ; then
-dnl    SERVER_LIBS="-ldspam $SERVER_LIBS"
-dnl    AC_DEFINE(HAVE_LIBDSPAM, [], [(unfinished) define this if you have the libdspam mail spam scanning library available])
-dnl fi
-
-
-
 dnl Checks for the Expat XML parser.
 AC_CHECK_HEADER(expat.h,
        [AC_CHECK_LIB(expat, XML_ParserCreateNS,
@@ -1029,7 +1013,6 @@ echo ------------------------------------------------------------------------
 echo 'LDAP support:                    ' $ok_ldap
 echo 'Character set conversion support:' $ok_iconv
 echo 'Boehm-Demers-Weiser support:     ' $ok_gc
-dnl echo 'DSpam Scanning support:          ' $ok_libdspam
 echo 
 echo 'Note: if you are not using Linux, make sure you are using GNU make'
 echo '(gmake) to compile Citadel.'
index ef9a27fed4b764d0dc6c0948e6a85255101ae0db..f541f982ddbc5ba9ef5eaac33b762da1ec093c7b 100644 (file)
@@ -308,10 +308,10 @@ void cmd_conf(char *argbuf)
                cprintf("%d\n",         CtdlGetConfigInt("c_pftcpdict_port"));
                cprintf("%d\n",         CtdlGetConfigInt("c_managesieve_port"));
                cprintf("%d\n",         CtdlGetConfigInt("c_auth_mode"));
-               cprintf("%s\n",         CtdlGetConfigStr("c_funambol_host"));
-               cprintf("%d\n",         CtdlGetConfigInt("c_funambol_port"));
-               cprintf("%s\n",         CtdlGetConfigStr("c_funambol_source"));
-               cprintf("%s\n",         CtdlGetConfigStr("c_funambol_auth"));
+               cprintf("\n");
+               cprintf("\n");
+               cprintf("\n");
+               cprintf("\n");
                cprintf("%d\n",         CtdlGetConfigInt("c_rbl_at_greeting"));
                cprintf("%s\n",         CtdlGetConfigStr("c_master_user"));
                cprintf("%s\n",         CtdlGetConfigStr("c_master_pass"));
@@ -518,16 +518,16 @@ void cmd_conf(char *argbuf)
                                CtdlSetConfigInt("c_auth_mode", atoi(buf));
                                break;
                        case 53:
-                               CtdlSetConfigStr("c_funambol_host", buf);
+                               /* niu */
                                break;
                        case 54:
-                               CtdlSetConfigInt("c_funambol_port", atoi(buf));
+                               /* niu */
                                break;
                        case 55:
-                               CtdlSetConfigStr("c_funambol_source", buf);
+                               /* niu */
                                break;
                        case 56:
-                               CtdlSetConfigStr("c_funambol_auth", buf);
+                               /* niu */
                                break;
                        case 57:
                                CtdlSetConfigInt("c_rbl_at_greeting", confbool(buf));
index 191d856d1f65bf1c538bbecd397ae6ffbde8c02e..1676e27f94f996700a20dba4423e9cc356e8b2cb 100644 (file)
@@ -2,7 +2,6 @@ etc/citadel/mail.aliases
 etc/citadel/public_clients
 etc/citadel/citadel_urlshorteners.rc
 usr/share/citadel-server/help
-usr/share/citadel-server/funambol_newmail_soap.xml
 etc/citadel/messages
 usr/lib/citadel-server/ctdlmigrate 
 usr/lib/citadel-server/setup
diff --git a/citadel/funambol_newmail_soap.xml b/citadel/funambol_newmail_soap.xml
deleted file mode 100644 (file)
index 1656c38..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><sendNotificationMessages soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
-<arg0 xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">^notifyuser</arg0><arg1 xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
-&lt;java version=&quot;1.5.0_13&quot; class=&quot;java.beans.XMLDecoder&quot;&gt; 
- &lt;array class=&quot;com.funambol.framework.core.Alert&quot; length=&quot;1&quot;&gt; 
-  &lt;void index=&quot;0&quot;&gt; 
-   &lt;object class=&quot;com.funambol.framework.core.Alert&quot;&gt; 
-    &lt;void property=&quot;cmdID&quot;&gt; 
-     &lt;object class=&quot;com.funambol.framework.core.CmdID&quot;/&gt; 
-    &lt;/void&gt; 
-    &lt;void property=&quot;data&quot;&gt; 
-     &lt;int&gt;206&lt;/int&gt; 
-    &lt;/void&gt; 
-    &lt;void property=&quot;items&quot;&gt; 
-     &lt;void method=&quot;add&quot;&gt; 
-      &lt;object class=&quot;com.funambol.framework.core.Item&quot;&gt; 
-       &lt;void property=&quot;meta&quot;&gt; 
-        &lt;object class=&quot;com.funambol.framework.core.Meta&quot;&gt; 
-         &lt;void property=&quot;metInf&quot;&gt; 
-          &lt;void property=&quot;type&quot;&gt; 
-           &lt;string&gt;application/vnd.omads-email+xml&lt;/string&gt; 
-          &lt;/void&gt; 
-         &lt;/void&gt; 
-        &lt;/object&gt; 
-       &lt;/void&gt; 
-       &lt;void property=&quot;target&quot;&gt; 
-        &lt;object class=&quot;com.funambol.framework.core.Target&quot;&gt; 
-         &lt;void property=&quot;locURI&quot;&gt; 
-          &lt;string&gt;^syncsource&lt;/string&gt; 
-         &lt;/void&gt; 
-        &lt;/object&gt; 
-       &lt;/void&gt; 
-      &lt;/object&gt; 
-     &lt;/void&gt; 
-    &lt;/void&gt; 
-   &lt;/object&gt; 
-  &lt;/void&gt; 
- &lt;/array&gt; 
-&lt;/java&gt; 
-</arg1><arg2 href="#id0"/></sendNotificationMessages>
-<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="soapenc:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1</multiRef></soapenv:Body></soapenv:Envelope>
index e417ed35b2221b525d0cf74cb410a24e8abb866b..6ce044eed92205d0107178efd1f791a882b7de9b 100644 (file)
@@ -10,7 +10,6 @@ extern char ctdl_home_directory[PATH_MAX];
 /* all our directories */
 extern char ctdl_bio_dir[PATH_MAX];
 extern char ctdl_data_dir[PATH_MAX];
-extern char ctdl_dspam_dir[PATH_MAX];
 extern char ctdl_file_dir[PATH_MAX];
 extern char ctdl_shared_dir[PATH_MAX];
 extern char ctdl_image_dir[PATH_MAX];
@@ -52,10 +51,6 @@ extern char file_crpt_file_cer[PATH_MAX];
 extern char file_chkpwd[PATH_MAX];
 extern char file_base64[PATH_MAX];
 extern char file_guesstimezone[PATH_MAX];
-extern char file_dpsam_conf[PATH_MAX];
-extern char file_dspam_log[PATH_MAX];
-
-extern char file_funambol_msg[PATH_MAX];
 
 extern void calc_dirs_n_files(int relh, int home, const char *relhome, char  *ctdldir, int dbg);
 
index daacbe3d7730e2f63fd2c11ac37f1cf839f91ff3..2d5dd7b2e6869dc602c3c87489d3d10d822e0b57 100644 (file)
@@ -28,7 +28,6 @@
 char ctdl_home_directory[PATH_MAX] = "";
 char ctdl_bio_dir[PATH_MAX]="bio";
 char ctdl_data_dir[PATH_MAX]="data";
-char ctdl_dspam_dir[PATH_MAX]="dspam";
 char ctdl_file_dir[PATH_MAX]="files";
 char ctdl_shared_dir[PATH_MAX]="";
 char ctdl_image_dir[PATH_MAX]="images";
@@ -69,9 +68,6 @@ char file_crpt_file_cer[PATH_MAX]="";
 char file_chkpwd[PATH_MAX]="";
 char file_base64[PATH_MAX]="";
 char file_guesstimezone[PATH_MAX]="";
-char file_funambol_msg[PATH_MAX] = "";
-char file_dpsam_conf[PATH_MAX] = "";
-char file_dspam_log[PATH_MAX] = "";
 
 
 
@@ -159,7 +155,6 @@ void calc_dirs_n_files(int relh, int home, const char *relhome, char  *ctdldir,
 #endif
        COMPUTE_DIRECTORY(ctdl_bio_dir);
        COMPUTE_DIRECTORY(ctdl_data_dir);
-       COMPUTE_DIRECTORY(ctdl_dspam_dir);
        COMPUTE_DIRECTORY(ctdl_file_dir);
        COMPUTE_DIRECTORY(ctdl_image_dir);
        COMPUTE_DIRECTORY(ctdl_info_dir);
@@ -168,7 +163,6 @@ void calc_dirs_n_files(int relh, int home, const char *relhome, char  *ctdldir,
 
        StripSlashes(ctdl_bio_dir, 1);
        StripSlashes(ctdl_data_dir, 1);
-       StripSlashes(ctdl_dspam_dir, 1);
        StripSlashes(ctdl_file_dir, 1);
        StripSlashes(ctdl_image_dir, 1);
        StripSlashes(ctdl_info_dir, 1);
@@ -275,16 +269,6 @@ void calc_dirs_n_files(int relh, int home, const char *relhome, char  *ctdldir,
                 "%sguesstimezone.sh",
                 ctdl_utilbin_dir);
 
-       snprintf(file_dpsam_conf,
-                sizeof file_dpsam_conf,
-                "%sdspam.conf",
-                ctdl_etc_dir);
-       StripSlashes(file_dpsam_conf, 0);
-       snprintf(file_dspam_log, 
-                sizeof file_dspam_log, 
-                "%sdspam.log",
-                ctdl_home_directory);
-       StripSlashes(file_dspam_log, 0);
        /* 
         * DIRTY HACK FOLLOWS! due to configs in the network dir in the 
         * legacy installations, we need to calculate ifdeffed here.
@@ -299,15 +283,9 @@ void calc_dirs_n_files(int relh, int home, const char *relhome, char  *ctdldir,
 #endif
                );
        StripSlashes(file_mail_aliases, 0);
-        snprintf(file_funambol_msg,
-                sizeof file_funambol_msg,
-                "%sfunambol_newmail_soap.xml",
-                ctdl_shared_dir);
-       StripSlashes(file_funambol_msg, 0);
 
        DBG_PRINT(ctdl_bio_dir);
        DBG_PRINT(ctdl_data_dir);
-       DBG_PRINT(ctdl_dspam_dir);
        DBG_PRINT(ctdl_file_dir);
        DBG_PRINT(ctdl_image_dir);
        DBG_PRINT(ctdl_info_dir);
@@ -341,7 +319,6 @@ void calc_dirs_n_files(int relh, int home, const char *relhome, char  *ctdldir,
        DBG_PRINT(file_chkpwd);
        DBG_PRINT(file_base64);
        DBG_PRINT(file_guesstimezone);
-       DBG_PRINT(file_funambol_msg);
 }
 
 
index 427b4d93e7268dadb52c5f97e25b746e30a4f809..6e350aee4f66ff151d7120110aae1a449c347355 100644 (file)
@@ -65,9 +65,11 @@ void init_ssl(void)
        char buf[SIZ];
        int rv = 0;
 
+#ifndef OPENSSL_NO_EGD
        if (!access("/var/run/egd-pool", F_OK)) {
                RAND_egd("/var/run/egd-pool");
        }
+#endif
 
        if (!RAND_status()) {
                syslog(LOG_WARNING, "PRNG not adequately seeded, won't do SSL/TLS\n");
@@ -333,8 +335,8 @@ void init_ssl(void)
                                if (cer = X509_new(), cer != NULL) {
 
                                        ASN1_INTEGER_set(X509_get_serialNumber(cer), 0);
-                                       X509_set_issuer_name(cer, req->req_info->subject);
-                                       X509_set_subject_name(cer, req->req_info->subject);
+                                       X509_set_issuer_name(cer, X509_REQ_get_subject_name(req));
+                                       X509_set_subject_name(cer, X509_REQ_get_subject_name(req));
                                        X509_gmtime_adj(X509_get_notBefore(cer), 0);
                                        X509_gmtime_adj(X509_get_notAfter(cer),(long)60*60*24*SIGN_DAYS);
 
@@ -444,7 +446,7 @@ int starttls(int sock) {
        else {
                syslog(LOG_INFO, "SSL_accept success\n");
        }
-       /*r = */BIO_set_close(newssl->rbio, BIO_NOCLOSE);
+       /*r = */BIO_set_close(SSL_get_rbio(newssl), BIO_NOCLOSE);
        bits = SSL_CIPHER_get_bits(SSL_get_current_cipher(newssl), &alg_bits);
        syslog(LOG_INFO, "SSL/TLS using %s on %s (%d of %d bits)\n",
                SSL_CIPHER_get_name(SSL_get_current_cipher(newssl)),
index 51855800ddf853355a5f60e46e1ccfa904494fb7..e5cf4ed4e210b1a3a441f653a39c45ed3675bdf6 100644 (file)
@@ -12,9 +12,8 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, tinymce, citadel-common, o
 Suggests: citadel-server, apache2 | apache, localepurge, gnome-icon-theme
 Recommends: shared-mime-info
 Description: web-based frontend to Citadel groupware server
- WebCit is a web-based, AJAX-enabled frontend to the Citadel groupware system.
- It is an attractive web middleware layer that allows user-friendly access.
+ WebCit is a web-based, dynamic web frontend to the Citadel groupware system.
+ It is an attractive web applicagtion that allows user-friendly access.
  By combining WebCit and Citadel, you can have a versatile online environment
  with many users concurrently accessing the same system using the user
  interface of their choice (text, web, or downloaded client software).
-