aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel.c')
-rw-r--r--camel/camel.c115
1 files changed, 0 insertions, 115 deletions
diff --git a/camel/camel.c b/camel/camel.c
deleted file mode 100644
index ae99da74c2..0000000000
--- a/camel/camel.c
+++ /dev/null
@@ -1,115 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * Authors: Jeffrey Stedfast <fejj@ximian.com>
- * Bertrand Guiheneuf <bertrand@helixcode.com>
- *
- * Copyright 1999-2003 Ximian, Inc. (www.ximian.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
- *
- */
-
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <signal.h>
-
-#ifdef HAVE_NSS
-#include <nspr.h>
-#include <prthread.h>
-#include "nss.h" /* Don't use <> here or it will include the system nss.h instead */
-#include <ssl.h>
-#endif /* HAVE_NSS */
-
-#include "camel.h"
-#include "camel-certdb.h"
-#include "camel-mime-utils.h"
-
-gboolean camel_verbose_debug = FALSE;
-
-static void
-camel_shutdown (void)
-{
- CamelCertDB *certdb;
-
-#ifdef HAVE_NSS
- NSS_Shutdown ();
-
- PR_Cleanup ();
-#endif /* HAVE_NSS */
-
- certdb = camel_certdb_get_default ();
- if (certdb) {
- camel_certdb_save (certdb);
- camel_object_unref (certdb);
- }
-}
-
-int
-camel_init (const char *configdir, gboolean nss_init)
-{
- CamelCertDB *certdb;
- char *path;
- void camel_operation_init(void);
-
- if (getenv ("CAMEL_VERBOSE_DEBUG"))
- camel_verbose_debug = TRUE;
-
- /* initialise global camel_object_type */
- camel_object_get_type ();
-
- camel_mime_utils_init ();
- camel_operation_init();
-
-#ifdef HAVE_NSS
- if (nss_init) {
- PR_Init (PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 10);
-
- if (NSS_InitReadWrite (configdir) == SECFailure) {
- /* fall back on using volatile dbs? */
- if (NSS_NoDB_Init (configdir) == SECFailure) {
- g_warning ("Failed to initialize NSS");
- return -1;
- }
- }
-
- NSS_SetDomesticPolicy ();
-
- SSL_OptionSetDefault (SSL_ENABLE_SSL2, PR_TRUE);
- SSL_OptionSetDefault (SSL_ENABLE_SSL3, PR_TRUE);
- SSL_OptionSetDefault (SSL_ENABLE_TLS, PR_TRUE);
- SSL_OptionSetDefault (SSL_V2_COMPATIBLE_HELLO, PR_TRUE /* maybe? */);
- }
-#endif /* HAVE_NSS */
-
- path = g_strdup_printf ("%s/camel-cert.db", configdir);
- certdb = camel_certdb_new ();
- camel_certdb_set_filename (certdb, path);
- g_free (path);
-
- /* if we fail to load, who cares? it'll just be a volatile certdb */
- camel_certdb_load (certdb);
-
- /* set this certdb as the default db */
- camel_certdb_set_default (certdb);
-
- camel_object_unref (certdb);
-
- g_atexit (camel_shutdown);
-
- return 0;
-}
tr> * - Update to 4.3.6.jkim2015-02-211-4/+4 * cleanup plistbapt2014-12-213-3/+0 * Update to 4.3.5.jkim2014-12-191-4/+4 * Update to 4.3.4.jkim2014-11-271-4/+4 * Update to 4.3.3.jkim2014-11-011-4/+4 * KDE/FreeBSD team presents KDE SC 4.14.2 and KDE Workspace 4.11.13!makc2014-10-193-40/+37 * Update to 4.3.2.jkim2014-10-172-5/+4 * Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-113-2/+3 * Upgrade OpenEXR and ilmbase to 2.2.0.mandree2014-08-162-1/+2 * Update to 4.2.5.jkim2014-06-241-4/+4 * Stagify.vanilla2014-06-172-2/+0 * Update to libreoffice 4.2.4bapt2014-06-111-4/+4 * KDE/FreeBSD team presents KDE SC 4.12.5 and KDE Workspace 4.11.9!makc2014-05-111-2/+2 * Update to 4.1.6.jkim2014-05-071-4/+4 * KDE/FreeBSD team presents KDE SC 4.12.4 and KDE Workspace 4.11.8!makc2014-04-031-2/+2 * Convert h* to USES=zipbapt2014-03-102-2/+2 * KDE/FreeBSD team presents KDE SC 4.12.3 and KDE Workspace 4.11.7!makc2014-03-051-2/+2 * Update to 4.1.5. It is partially based on the following PR.jkim2014-02-261-4/+4 * - Bump PORTREVISION after KDE4_PREFIX changemakc2014-02-181-0/+1 * KDE/FreeBSD team presents KDE SC 4.12.2 and KDE Workspace 4.11.6!makc2014-02-183-19/+39 * Support stagingehaupt2014-02-181-2/+1 * Support stagingehaupt2014-02-181-4/+3 * Remove ispell which is deprecated for long, consider using aspell instead or ...bapt2014-01-297-307/+0 * - Update Calligra Suite to 2.7.5.avilla2013-12-173-3/+4 * Stagifybapt2013-11-041-4/+3 * Stagifybapt2013-11-041-4/+3 * Support stage, use bsdtar to extractbapt2013-11-041-3/+2 * Stagifybapt2013-11-041-1/+0 * - Update to 4.0.6.jkim2013-10-262-5/+4 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-2112-15/+13 * Update to 4.0.5.jkim2013-08-231-4/+4 * KDE3 and QT3 expired on 2013-07-01, remove these ports.rene2013-07-275-1134/+0 * Fix INDEX by really fixing the kde4-l10n portsbapt2013-07-101-0/+1 * KDE4 l10n fixes.rakuco2013-07-102-3/+1 * Update the KDE Software Compilation to 4.10.5.rakuco2013-07-051-2/+2 * Update to KDE SC 4.10.4, proudly presented by the KDE on FreeBSD team.rakuco2013-07-031-2/+2 * Update to 4.0.4.jkim2013-06-201-4/+4 * KDE/FreeBSD team presents KDE SC 4.10.3 ports!makc2013-05-192-4/+2 * Update to 4.0.3.jkim2013-05-101-4/+4 * - Convert USE_GETTEXT to USES (part 2)ak2013-04-241-1/+1 * Update to 4.0.2.jkim2013-04-171-4/+4 * - Update Calligra and l10n ports to 2.6.2:avilla2013-03-302-7/+5 * KDE/FreeBSD team presents KDE SC 4.10.1 ports!makc2013-03-273-16/+33 * Update to 4.0.1.jkim2013-03-091-4/+4 * Merge from area51 repository:makc2013-02-052-3/+3 * Update to 3.6.5.jkim2013-02-051-4/+4 * KDE/FreeBSD team presents KDE SC 4.9.5 ports!makc2013-02-043-30/+40 * - Change MAINTAINER addresstabthorpe2013-01-106-34/+10 * - Deprecate QT3, KDE3 and unmaintained ports depending on them. QT 3.3.8beat2012-12-301-0/+3 * - Update to 3.5.7.jkim2012-10-272-9/+4 * - Update Calligra Suite to 2.5.2.avilla2012-09-171-2/+2 * - Update Calligra to 2.5.1.avilla2012-09-012-7/+2 * The KDE/FreeBSD team is pleased to announce version 2.5 of Calligra,avilla2012-08-262-11/+3 * - Update to 3.5.6.jkim2012-08-241-4/+4 * Fix typos in COMMENTcs2012-07-291-1/+1 * - Update LibreOffice and the language packs to 3.5.5.jkim2012-07-181-4/+4 * - Update Calligra to 2.4.3.avilla2012-07-052-2/+4 * - The FreeBSD Office team is proud to announce LibreOffice.org 3.5.4 releasefluffy2012-07-011-4/+4 * KDE/FreeBSD team presents KDE SC 4.8.4, probably the last release in 4.8.x se...makc2012-06-152-3/+2 * - update png to 1.5.10dinoex2012-06-012-1/+2 * - Remove koffice-i18n ports, as they are not very useful withoutavilla2012-05-315-68/+0 * The KDE/FreeBSD team is pleased to announce Calligra Suite 2.4.2, KDEavilla2012-05-319-108/+47 * KDE/FreeBSD team presents long awaited KDE SC 4.8.3!makc2012-05-253-10/+72 * - upgrade to 3.5.2bapt2012-04-234-0/+22 * - Bump PORTREVISION to chase the update of multimedia/libvpxashish2012-02-163-0/+3 * The KDE/FreeBSD team is pleased to announce KDE SC 4.7.4, whichavilla2012-01-252-2/+7 * - Pass maintainership to office@FreeBSD.orgsunpoet2011-11-291-1/+1 * The KDE on FreeBSD team is pleased to update the KDE4 ports to 4.7.3.rakuco2011-11-141-2/+2 * The KDE/FreeBSD team is pleased to announce KDE Software Compilationavilla2011-10-172-8/+27 * - Set DIST_SUBDIR: move dist files to DISTDIR/mythessunpoet2011-08-182-2/+3 * - Set DIST_SUBDIR: move dist files to DISTDIR/hyphensunpoet2011-08-182-2/+3 * - Change MASTER_SITES to my LOCAL to avoid implicit change of non-versionedsunpoet2011-08-184-8/+8 * - Set WRKSRCsunpoet2011-08-131-1/+2 * - Fix MASTER_SITESsunpoet2011-08-083-49/+11 * - Move language prefix to PKGNAMEPREFIXsunpoet2011-07-292-9/+12 * Pass matainership to the new office teambapt2011-07-222-2/+2 * Add some locales thesaurusbapt2011-07-214-0/+34 * Add Hungarian hyphenation rulesbapt2011-07-214-0/+33 * - now only provides the hungarian dictionnariesbapt2011-07-206-148/+17 * - Connect textproc/hunspell to the buildjlaffaye2011-07-191-1/+0 * take maintainership, no reply from previous maintainerbapt2011-07-111-1/+1 * Reset maintainership de jure. In fact KDE 3 has not been maintained by our teammakc2011-07-082-2/+2 * Update KDE Software Compilation ports to 4.6.5makc2011-07-082-2/+35 * The FreeBSD KDE Team is pleased to announce KDE SC 4.6.4. Read fullavilla2011-06-142-2/+3 * Update KDE Software Compilation ports to 4.6.3makc2011-05-172-2/+19 * Fix PKGORIGINmakc2011-04-192-2/+2 * - Update KOffice to 2.3.3.avilla2011-04-132-4/+4 * The FreeBSD KDE Team is pleased to announce April updates for KDEavilla2011-04-071-2/+2 * - Connect hungarian/koffice-kde4-l10n to the build, and, mostavilla2011-03-251-0/+1 * - Update KOffice to 2.3.1.avilla2011-03-258-0/+146 * The FreeBSD KDE Team is pleased to announce KDE SC 4.6.1 and KDE PIMavilla2011-03-252-13/+53 * - Get Rid MD5 supportmiwi2011-03-209-10/+0 * - The KDE FreeBSD team is proud to announce the release of KDE 4.5.5fluffy2011-01-081-2/+2 * KDE FreeBSD team presents KDE SC 4.5.4.makc2010-12-031-2/+2 * KDE FreeBSD team presents KDE SC 4.5.3.makc2010-11-042-3/+5 * KDE FreeBSD team presents KDE SC 4.5.2.makc2010-10-062-3/+45 * Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-162-4/+2 * KDE FreeBSD team presents KDE SC 4.5.1.makc2010-09-032-376/+11 * Present KDE SC 4.4.5 for FreeBSD.makc2010-06-301-3/+3 * - Update to 1.2.11gabor2010-06-039-71/+57 * Present KDE SC 4.4.4 for FreeBSD.makc2010-06-021-3/+3 * - Update to 1.6.1gabor2010-06-013-5/+7 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-313-2/+3 * - The FreeBSD KDE team is pleased to announce KDE SC 4.4.3 for FreeBSDfluffy2010-05-113-33/+83 * - update to 1.4.1dinoex2010-03-283-2/+3 * Presenting KDE 4.3.5 for FreeBSD. The official release notes for thismiwi2010-02-073-4/+4 * - update to jpeg-8dinoex2010-02-053-2/+3 * The FreeBSD KDE is please to announce the release of KDE 4.3.4,miwi2009-12-022-3/+6 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.3miwi2009-11-272-5/+34 * The FreeBSD KDE is please to announce the release of KDE 4.3.1,tabthorpe2009-09-022-5/+25 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-224-4/+5 * clean upmakc2009-08-081-3/+0 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.0miwi2009-08-053-17/+41 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-313-0/+3 * The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-031-3/+3 * Update KDE ports to 4.2.3makc2009-05-102-3/+70 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-022-6/+28 * Update KDE to 4.2.1.makc2009-03-092-3/+6 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.0miwi2009-02-092-24/+11 * - Update to 1.2.8gabor2009-02-086-16/+58 * - Update to 1.4gabor2009-02-082-4/+4 * kde@freebsd team is pleased to announce KDE 4.1.4, the last bugfix release in...makc2009-01-143-6/+9 * Turns out, libdata/pkgconfig/ is already part of mtree and needs neithermi2008-09-092-3/+1 * Fix the incorrect location hunspell.pc. No PORTREVISION bump, becausemi2008-09-091-1/+1 * Correct the destination of hunspell.pc file -- according to pav,mi2008-09-082-3/+3 * Add two directories missing from plist...mi2008-09-041-0/+2 * Upgrade from 1.2.2b to 1.2.7.mi2008-09-046-47/+73 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.1miwi2008-09-032-5/+21 * The KDE FreeBSD team is proud to announce the releasemiwi2008-08-291-3/+3 * The KDE FreeBSD team is proud to announce the releasemiwi2008-08-182-10/+64 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.0miwi2008-08-105-484/+244 * PHP Documentation in these language has been removed from the distribution.edwin2008-08-042-14/+0 * - Update MASTER_SITESgabor2008-07-122-2/+2 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-063-2/+3 * - Update to 1.3gabor2008-04-245-75/+41 * - Fix checking on LaTeX files on amd64gabor2008-04-242-0/+12 * - Update to 1.2.2bgabor2008-04-074-51/+25 * Update to KDE 3.5.8lofi2007-10-304-8/+6 * - Fix UTF-8 buggabor2007-10-073-0/+21 * - Update to 1.2.1gabor2007-09-284-99/+89 * - Update to 1.1.10gabor2007-08-283-5/+31 * - Update to 1.1.9gabor2007-08-014-8/+18 * - Update to 1.1.8gabor2007-07-214-19/+38 * Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-048-29/+12 * BROKEN: Still broken on 6.x and abovekris2007-05-251-0/+2 * - Welcome X.org 7.2 \o/.flz2007-05-205-2/+5 * Remove BROKEN: This might be fixedkris2007-04-291-2/+0 * BROKEN: Does not installkris2007-03-251-0/+2 * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-147-11/+12 * Really normalize Aspell dictionaries ports PKGVERSION...thierry2007-02-151-1/+1 * Normalize Aspell dictionaries PKGNAMEs.thierry2007-01-141-0/+1 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-205-10/+11 * - Update to 1.1.4miwi2006-11-105-71/+27 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-134-10/+10 * Now installs again.kris2006-08-171-2/+0 * Mark BROKEN: does not installerwin2006-08-041-0/+2 * Update to 1.0itetcu2006-08-013-43/+107 * All dictionaries can be installed separately:thierry2006-07-154-7/+15 * Update to KDE 3.5.3lofi2006-06-064-22/+20 * Update to KOffice 1.5.1lofi2006-05-272-4/+4