/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Authors: Jeffrey Stedfast * * Copyright 2001 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. * */ #ifndef CAMEL_CMS_CONTEXT_H #define CAMEL_CMS_CONTEXT_H #include #include #include #include #ifdef __cplusplus extern "C" { #pragma } #endif /* __cplusplus */ #define CAMEL_CMS_CONTEXT_TYPE (camel_cms_context_get_type ()) #define CAMEL_CMS_CONTEXT(obj) (CAMEL_CHECK_CAST((obj), CAMEL_CMS_CONTEXT_TYPE, CamelCMSContext)) #define CAMEL_CMS_CONTEXT_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_CMS_CONTEXT_TYPE, CamelCMSContextClass)) #define CAMEL_IS_CMS_CONTEXT(o) (CAMEL_CHECK_TYPE((o), CAMEL_CMS_CONTEXT_TYPE)) typedef enum { CAMEL_CMS_TYPE_DATA, CAMEL_CMS_TYPE_SIGNED, CAMEL_CMS_TYPE_ENVELOPED, CAMEL_CMS_TYPE_ENCRYPTED } CamelCMSType; typedef struct _CamelCMSSigner { struct _CamelCMSSigner *next; char *signercn; char *status; } CamelCMSSigner; typedef struct _CamelCMSValidityInfo { struct _CamelCMSValidityInfo *next; CamelCMSType type; CamelCMSSigner *signers; } CamelCMSValidityInfo; typedef struct _CamelCMSContext { CamelObject parent_object; struct _CamelCMSContextPrivate *priv; CamelSession *session; } CamelCMSContext; typedef struct _CamelCMSContextClass { CamelObjectClass parent_class; CamelMimeMessage *(*sign) (CamelCMSContext *ctx, CamelMimeMessage *message, const char *userid, gboolean signing_time, gboolean detached, CamelException *ex); CamelMimeMessage *(*certsonly) (CamelCMSContext *ctx, CamelMimeMessage *message, const char *userid, GPtrArray *recipients, CamelException *ex); CamelMimeMessage *(*encrypt) (CamelCMSContext *ctx, CamelMimeMessage *message, const char *userid, GPtrArray *recipients, CamelException *ex); CamelMimeMessage *(*envelope) (CamelCMSContext *ctx, CamelMimeMessage *message, const char *userid, GPtrArray *recipients, CamelException *ex); CamelMimeMessage *(*decode) (CamelCMSContext *ctx, CamelMimeMessage *message, CamelCMSValidityInfo **info, CamelException *ex); } CamelCMSContextClass; CamelType camel_cms_context_get_type (void); CamelCMSContext *camel_cms_context_new (CamelSession *session); void camel_cms_context_construct (CamelCMSContext *context, CamelSession *session); /* cms routines */ CamelMimeMessage *camel_cms_sign (CamelCMSContext *ctx, CamelMimeMessage *message, const char *userid, gboolean signing_time, gboolean detached, CamelException *ex); CamelMimeMessage *camel_cms_certsonly (CamelCMSContext *ctx, CamelMimeMessage *message, const char *userid, GPtrArray *recipients, CamelException *ex); CamelMimeMessage *camel_cms_encrypt (CamelCMSContext *ctx, CamelMimeMessage *message, const char *userid, GPtrArray *recipients, CamelException *ex); CamelMimeMessage *camel_cms_envelope (CamelCMSContext *ctx, CamelMimeMessage *message, const char *userid, GPtrArray *recipients, CamelException *ex); CamelMimeMessage *camel_cms_decode (CamelCMSContext *ctx, CamelMimeMessage *message, CamelCMSValidityInfo **info, CamelException *ex); void camel_cms_signer_free (CamelCMSSigner *signer); void camel_cms_validity_info_free (CamelCMSValidityInfo *info); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* CAMEL_CMS_CONTEXT_H */ title='2009-09-03 23:23:49 +0800'>2009-09-031-2/+0 * Add support for upcoming MySQL 5.4.ale2009-07-211-0/+1 * Add postgresql 8.4 to the list of versions.girgen2009-07-081-0/+1 * - Reformat knobs and their descriptionsdanfe2009-03-311-46/+55 * Add support to mysql server and embedded library dependencies.ale2009-03-041-5/+12 * - Try to unbreak USE_FIREBIRDpav2008-11-301-2/+2 * Unbreak ports tree.cperciva2008-11-241-1/+1 * Rename databases/firebird2-* to databases/firebird20-*skv2008-11-241-2/+4 * Add support for MySQL 6.0.ale2008-07-261-0/+1 * Add db47 to bsd.databases.mk.vanilla2008-06-091-2/+9 * Add WITH_PGSQL_VER macro to bsd.database.mk, that allows to specifyvsevolod2008-04-111-5/+14 * - Fix when USE_SQLITE != yesmnag2008-04-061-3/+5 * - Fix .endif. Maybe works now :)mnag2008-04-061-1/+1 * - Fix wrong .endifmnag2008-04-051-1/+1 * - Add option to databases/sqlite34mnag2008-04-051-3/+4 * - Fix typo (unclosed double-quote)pav2008-03-121-4/+4 * Introducing the first beta of PostgreSQL 8.3girgen2007-10-151-0/+1 * Update to 5.1.21 release.ale2007-08-281-1/+1 * Add support of Berkeley DB 4.6.delphij2007-08-061-2/+9 * Allow depending on Berkeley DB 4.5delphij2007-08-021-6/+14