diff options
author | nobody <nobody@localhost> | 2001-07-25 08:33:17 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2001-07-25 08:33:17 +0800 |
commit | 9f92ed77625f0a79df1ae2a2446da3d3b0c5bd43 (patch) | |
tree | 8ef1fb6f0f43735a382bada2f369dde7d04387f4 /camel/camel-cms-context.h | |
parent | e951bf718e130e43567187f4b71c27672cd6e996 (diff) | |
download | gsoc2013-evolution-GNOME_CONTROL_CENTER_1_5_2.tar gsoc2013-evolution-GNOME_CONTROL_CENTER_1_5_2.tar.gz gsoc2013-evolution-GNOME_CONTROL_CENTER_1_5_2.tar.bz2 gsoc2013-evolution-GNOME_CONTROL_CENTER_1_5_2.tar.lz gsoc2013-evolution-GNOME_CONTROL_CENTER_1_5_2.tar.xz gsoc2013-evolution-GNOME_CONTROL_CENTER_1_5_2.tar.zst gsoc2013-evolution-GNOME_CONTROL_CENTER_1_5_2.zip |
This commit was manufactured by cvs2svn to create tagGNOME_CONTROL_CENTER_1_5_2
'GNOME_CONTROL_CENTER_1_5_2'.
svn path=/tags/GNOME_CONTROL_CENTER_1_5_2/; revision=11383
Diffstat (limited to 'camel/camel-cms-context.h')
-rw-r--r-- | camel/camel-cms-context.h | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/camel/camel-cms-context.h b/camel/camel-cms-context.h deleted file mode 100644 index b68547e8b0..0000000000 --- a/camel/camel-cms-context.h +++ /dev/null @@ -1,128 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * Authors: Jeffrey Stedfast <fejj@ximian.com> - * - * 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 <camel/camel-session.h> -#include <camel/camel-stream.h> -#include <camel/camel-exception.h> -#include <camel/camel-mime-message.h> - -#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 */ |