[evolution-data-server] Bug #592317 - Sign S/MIME with valid certificates only
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #592317 - Sign S/MIME with valid certificates only
- Date: Mon, 14 Dec 2009 15:03:05 +0000 (UTC)
commit 27785f4671fa486f6e9c6880cc735c3245030e4a
Author: Milan Crha <mcrha redhat com>
Date: Mon Dec 14 16:01:52 2009 +0100
Bug #592317 - Sign S/MIME with valid certificates only
camel/camel-smime-context.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c
index 99ad6d8..a8f3b4a 100644
--- a/camel/camel-smime-context.c
+++ b/camel/camel-smime-context.c
@@ -442,7 +442,7 @@ sm_signing_cmsmessage(CamelSMIMEContext *context, const gchar *nick, SECOidTag h
if ((cert = CERT_FindUserCertByUsage(p->certdb,
(gchar *)nick,
certUsageEmailSigner,
- PR_FALSE,
+ PR_TRUE,
NULL)) == NULL) {
camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot find certificate for '%s'"), nick);
return NULL;
@@ -507,7 +507,7 @@ sm_signing_cmsmessage(CamelSMIMEContext *context, const gchar *nick, SECOidTag h
if ((ekpcert = CERT_FindUserCertByUsage(
p->certdb,
p->encrypt_key,
- certUsageEmailRecipient, PR_FALSE, NULL)) == NULL) {
+ certUsageEmailRecipient, PR_TRUE, NULL)) == NULL) {
camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, _("Encryption certificate for '%s' does not exist"), p->encrypt_key);
goto fail;
}
@@ -519,7 +519,7 @@ sm_signing_cmsmessage(CamelSMIMEContext *context, const gchar *nick, SECOidTag h
/* encrypt key uses same nick */
if ((ekpcert = CERT_FindUserCertByUsage(
p->certdb, (gchar *)nick,
- certUsageEmailRecipient, PR_FALSE, NULL)) == NULL) {
+ certUsageEmailRecipient, PR_TRUE, NULL)) == NULL) {
camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, _("Encryption certificate for '%s' does not exist"), nick);
goto fail;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]