diff options
author | Not Zed <NotZed@Ximian.com> | 2003-11-13 11:52:12 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-11-13 11:52:12 +0800 |
commit | 61b1ec94bae6c13d7d1f6dade48a51bfc40f04ef (patch) | |
tree | 3986ab833d78b4785c3c69f3496645ed10787980 /camel/camel-cipher-context.c | |
parent | ea99b0cfb4bdac855bb36961b3c2d9fe36ecf041 (diff) | |
download | gsoc2013-evolution-61b1ec94bae6c13d7d1f6dade48a51bfc40f04ef.tar.gz gsoc2013-evolution-61b1ec94bae6c13d7d1f6dade48a51bfc40f04ef.tar.zst gsoc2013-evolution-61b1ec94bae6c13d7d1f6dade48a51bfc40f04ef.zip |
look at the content object's mime type, not the container's type.
2003-11-13 Not Zed <NotZed@Ximian.com>
* camel-smime-context.c (sm_verify): look at the content object's
mime type, not the container's type.
2003-11-11 Not Zed <NotZed@Ximian.com>
* camel-cipher-context.c (camel_cipher_validity_set_valid): take
into account the @valid argument and set validity properly.
(camel_cipher_validity_clone): new method to copy validities.
* camel-smime-context.c (sm_signing_cmsmessage): removed a todo.
svn path=/trunk/; revision=23311
Diffstat (limited to 'camel/camel-cipher-context.c')
-rw-r--r-- | camel/camel-cipher-context.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/camel/camel-cipher-context.c b/camel/camel-cipher-context.c index 9e741e4531..40f8d152eb 100644 --- a/camel/camel-cipher-context.c +++ b/camel/camel-cipher-context.c @@ -371,7 +371,7 @@ camel_cipher_validity_set_valid (CamelCipherValidity *validity, gboolean valid) { g_assert (validity != NULL); - validity->sign.status = CAMEL_CIPHER_VALIDITY_SIGN_GOOD; + validity->sign.status = valid?CAMEL_CIPHER_VALIDITY_SIGN_GOOD:CAMEL_CIPHER_VALIDITY_SIGN_BAD; } gchar * @@ -402,6 +402,20 @@ camel_cipher_validity_clear (CamelCipherValidity *validity) camel_cipher_validity_init(validity); } +CamelCipherValidity * +camel_cipher_validity_clone(CamelCipherValidity *vin) +{ + CamelCipherValidity *vo; + + vo = g_malloc0(sizeof(*vo)); + vo->sign.status = vin->sign.status; + vo->sign.description = g_strdup(vin->sign.description); + vo->encrypt.status = vin->encrypt.status; + vo->encrypt.description = g_strdup(vin->encrypt.description); + + return vo; +} + /** * camel_cipher_validity_envelope: * @validity: |