[Commits] [SCM] claws branch, master, updated. 3.9.2-30-g47fc23c
claws at claws-mail.org
claws at claws-mail.org
Fri Jul 12 09:13:18 CEST 2013
The branch master of project "claws" (Claws Mail) has been updated
via 47fc23c48fd9832a8230962f59decad6ad2824ae (commit)
from 8a60ff01e9e4245a613e7ca31ca903a3d624629b (commit)
- Log -----------------------------------------------------------------
commit 47fc23c48fd9832a8230962f59decad6ad2824ae
Author: Paul <paul at claws-mail.org>
Date: Fri Jul 12 08:13:12 2013 +0100
fix bug 2960, 'rfc3156 deviation regarding hash symbols'
make micalg value lowercase as per RFC 3156
diff --git a/src/plugins/pgpmime/pgpmime.c b/src/plugins/pgpmime/pgpmime.c
index a54e527..30cf043 100644
--- a/src/plugins/pgpmime/pgpmime.c
+++ b/src/plugins/pgpmime/pgpmime.c
@@ -553,8 +553,8 @@ gboolean pgpmime_sign(MimeInfo *mimeinfo, PrefsAccount *account, const gchar *fr
if (result && result->signatures) {
gpgme_new_signature_t sig = result->signatures;
if (gpgme_get_protocol(ctx) == GPGME_PROTOCOL_OpenPGP) {
- micalg = g_strdup_printf("PGP-%s", gpgme_hash_algo_name(
- result->signatures->hash_algo));
+ micalg = g_strdup_printf("pgp-%s", g_ascii_strdown(gpgme_hash_algo_name(
+ result->signatures->hash_algo),-1));
} else {
micalg = g_strdup(gpgme_hash_algo_name(
result->signatures->hash_algo));
diff --git a/src/plugins/smime/smime.c b/src/plugins/smime/smime.c
index 0a8ac53..07e2345 100644
--- a/src/plugins/smime/smime.c
+++ b/src/plugins/smime/smime.c
@@ -629,8 +629,8 @@ gboolean smime_sign(MimeInfo *mimeinfo, PrefsAccount *account, const gchar *from
result = gpgme_op_sign_result(ctx);
if (result && result->signatures) {
if (gpgme_get_protocol(ctx) == GPGME_PROTOCOL_OpenPGP) {
- micalg = g_strdup_printf("PGP-%s", gpgme_hash_algo_name(
- result->signatures->hash_algo));
+ micalg = g_strdup_printf("pgp-%s", g_ascii_strdown(gpgme_hash_algo_name(
+ result->signatures->hash_algo),-1));
} else {
micalg = g_strdup(gpgme_hash_algo_name(
result->signatures->hash_algo));
-----------------------------------------------------------------------
Summary of changes:
src/plugins/pgpmime/pgpmime.c | 4 ++--
src/plugins/smime/smime.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list