From 2d62db45411f0d7ffa18bf2d5ef904445844ae8c Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 7 Mar 2002 20:11:35 +0000 Subject: Add support for hash type RIPEMD160. 2002-03-07 Jeffrey Stedfast * camel-pgp-mime.c (camel_pgp_mime_part_sign): Add support for hash type RIPEMD160. * camel-cipher-context.h: Add RIPEMD160 hash type. * camel-pgp-context.c (pgp_sign): Updated to consider hash function for pgp5 and pgp6. (pgp_clearsign): Same. svn path=/trunk/; revision=15969 --- camel/camel-pgp-mime.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'camel/camel-pgp-mime.c') diff --git a/camel/camel-pgp-mime.c b/camel/camel-pgp-mime.c index 4e3eee7cba..47458803a5 100644 --- a/camel/camel-pgp-mime.c +++ b/camel/camel-pgp-mime.c @@ -294,6 +294,9 @@ camel_pgp_mime_part_sign (CamelPgpContext *context, CamelMimePart **mime_part, c case CAMEL_CIPHER_HASH_SHA1: hash_type = "pgp-sha1"; break; + case CAMEL_CIPHER_HASH_RIPEMD160: + hash_type = "pgp-ripemd160"; + break; default: /* set a reasonable default */ hash = CAMEL_CIPHER_HASH_SHA1; -- cgit