[evolution-patches] Hash algo for signing e-mails with GnuPG v2.0.9



Hi all:

I've updated the patches for evolution-data-server and evolution
v2.25.91.

Tested with gpg.conf option
digest-algo SHA1
digest-algo SHA512
digest-algo RIPEMD160
# digest-algo

The last setting results in gpg's default SHA1.

Cheers
Steffen

--- evolution-data-server-2.25.91/camel/camel-gpg-context.c	2009-02-13 08:39:09.000000000 +0100
+++ evolution-data-server-2.25.91/camel/camel-gpg-context.c	2009-02-27 11:08:08.000000000 +0100
@@ -126,7 +126,6 @@
 	case CAMEL_CIPHER_HASH_MD5:
 		return "pgp-md5";
 	case CAMEL_CIPHER_HASH_SHA1:
-	case CAMEL_CIPHER_HASH_DEFAULT:
 		return "pgp-sha1";
 	case CAMEL_CIPHER_HASH_RIPEMD160:
 		return "pgp-ripemd160";
--- evolution-2.25.91/composer/e-msg-composer.c	2009-02-13 08:39:37.000000000 +0100
+++ evolution-2.25.91/composer/e-msg-composer.c	2009-02-27 11:14:51.000000000 +0100
@@ -806,7 +806,7 @@
 			CamelMimePart *npart = camel_mime_part_new ();
 
 			cipher = mail_crypto_get_pgp_cipher_context (account);
-			camel_cipher_sign (cipher, pgp_userid, CAMEL_CIPHER_HASH_SHA1, part, npart, &ex);
+			camel_cipher_sign (cipher, pgp_userid, CAMEL_CIPHER_HASH_DEFAULT, part, npart, &ex);
 			camel_object_unref (cipher);
 
 			if (camel_exception_is_set (&ex)) {

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]