diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-02-22 01:24:13 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-02-22 01:24:13 +0800 |
commit | 8738bf7afffc7d2696d6e422e08583d3207ef837 (patch) | |
tree | 0ae98fda61c372b0e7939b66de995f767d5f2f2c /mail/openpgp-utils.h | |
parent | 782a42ee7d5ee47607d742a3201715e4201f2e3a (diff) | |
download | gsoc2013-evolution-8738bf7afffc7d2696d6e422e08583d3207ef837.tar gsoc2013-evolution-8738bf7afffc7d2696d6e422e08583d3207ef837.tar.gz gsoc2013-evolution-8738bf7afffc7d2696d6e422e08583d3207ef837.tar.bz2 gsoc2013-evolution-8738bf7afffc7d2696d6e422e08583d3207ef837.tar.lz gsoc2013-evolution-8738bf7afffc7d2696d6e422e08583d3207ef837.tar.xz gsoc2013-evolution-8738bf7afffc7d2696d6e422e08583d3207ef837.tar.zst gsoc2013-evolution-8738bf7afffc7d2696d6e422e08583d3207ef837.zip |
Changed to use PgpValidity.
2001-02-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (pgp_mime_part_verify): Changed to use
PgpValidity.
* openpgp-utils.c (openpgp_verify): Return a PgpValidity and set
the description as UTF-8 for later use in mail-format.c when
writing to GtkHTML.
* mail-format.c (try_inline_pgp_sig): Updated to use the new
PgpValidity code.
(handle_multipart_signed): Updated.
svn path=/trunk/; revision=8320
Diffstat (limited to 'mail/openpgp-utils.h')
-rw-r--r-- | mail/openpgp-utils.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/mail/openpgp-utils.h b/mail/openpgp-utils.h index 571a1d125c..66dee836b0 100644 --- a/mail/openpgp-utils.h +++ b/mail/openpgp-utils.h @@ -45,6 +45,7 @@ typedef enum { PGP_HASH_TYPE_SHA1 } PgpHashType; +typedef struct _PgpValidity PgpValidity; void openpgp_init (const gchar *path, PgpType type); @@ -63,8 +64,24 @@ gchar *openpgp_clearsign (const gchar *plaintext, const gchar *userid, 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); +PgpValidity *openpgp_verify (const gchar *in, gint inlen, const gchar *sigin, + gint siglen, CamelException *ex); + +PgpValidity *openpgp_validity_new (void); + +void openpgp_validity_init (PgpValidity *validity); + +gboolean openpgp_validity_get_valid (PgpValidity *validity); + +void openpgp_validity_set_valid (PgpValidity *validity, gboolean valid); + +gchar *openpgp_validity_get_description (PgpValidity *validity); + +void openpgp_validity_set_description (PgpValidity *validity, const gchar *description); + +void openpgp_validity_clear (PgpValidity *validity); + +void openpgp_validity_free (PgpValidity *validity); #ifdef __cplusplus } |