From 9ac6b893de8bdf0500905f8c9533a7e9d771e7f9 Mon Sep 17 00:00:00 2001 From: Kacper Wysocki Date: Thu, 24 Mar 2011 17:24:54 +0100 Subject: [PATCH] what is wrong with sha512? --- .gitignore | 1 + gpg.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/gpg.c b/gpg.c index 287523f..b78497d 100644 --- a/gpg.c +++ b/gpg.c @@ -170,7 +170,11 @@ int gpgCheckSignResult(SHOWERROR_FN showerror_cb, gpgme_sign_result_t result, error = 1; } if (!error && - result -> signatures -> hash_algo != GPGME_MD_SHA1) + result -> signatures -> hash_algo != GPGME_MD_SHA1 && + result -> signatures -> hash_algo != GPGME_MD_SHA256 && + result -> signatures -> hash_algo != GPGME_MD_SHA384 && + result -> signatures -> hash_algo != GPGME_MD_SHA512 + ) { switch (result -> signatures -> hash_algo) {