From 526f5d8c6417228db71ad9e50c1a8bd8e4f5d573 Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 11 Jan 2001 16:04:13 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'BALSA_1_1_0'. svn path=/tags/BALSA_1_1_0/; revision=7387 --- mail/openpgp-utils.h | 74 ---------------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 mail/openpgp-utils.h (limited to 'mail/openpgp-utils.h') diff --git a/mail/openpgp-utils.h b/mail/openpgp-utils.h deleted file mode 100644 index 17c5e22ccf..0000000000 --- a/mail/openpgp-utils.h +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * Authors: Jeffrey Stedfast - * - * Copyright 2000 Helix Code, Inc. (www.helixcode.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 __OPENPGP_UTILS_H__ -#define __OPENPGP_UTILS_H__ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ - -typedef enum { - PGP_TYPE_NONE, - PGP_TYPE_PGP2, - PGP_TYPE_PGP5, - PGP_TYPE_GPG -} PgpType; - -typedef enum { - PGP_HASH_TYPE_NONE, - PGP_HASH_TYPE_MD5, - PGP_HASH_TYPE_SHA1 -} PgpHashType; - -typedef gchar* (*PgpPasswdFunc) (const gchar *prompt, gpointer data); - -void openpgp_init (const gchar *path, PgpType type, PgpPasswdFunc callback, gpointer data); - -gboolean openpgp_detect (const gchar *text); - -gboolean openpgp_sign_detect (const gchar *text); - -gchar *openpgp_decrypt (const gchar *ciphertext, gint cipherlen, gint *outlen, CamelException *ex); - -gchar *openpgp_encrypt (const gchar *in, gint inlen, const GPtrArray *recipients, - gboolean sign, const gchar *userid, CamelException *ex); - -gchar *openpgp_clearsign (const gchar *plaintext, const gchar *userid, - PgpHashType hash, CamelException *ex); - -gchar *openpgp_sign (const gchar *in, gint inlen, const gchar *userid, - PgpHashType hash, CamelException *ex); - -gboolean openpgp_verify (const gchar *in, gint inlen, const gchar *sigin, - gint siglen, CamelException *ex); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* __OPENPGP_UTILS_H__ */ -- cgit v1.2.3