8bcd78e553
excellente! OBS-URL: https://build.opensuse.org/request/show/68635 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpgme?expand=0&rev=24
22 lines
899 B
Diff
22 lines
899 B
Diff
Cherry picked from commit 43f38db1afe9830b888076adeec1eec21f32335c
|
|
|
|
From 43f38db1afe9830b888076adeec1eec21f32335c Mon Sep 17 00:00:00 2001
|
|
From: Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
|
|
Date: Wed, 27 Apr 2011 12:56:19 +0200
|
|
Subject: [PATCH] Update GPGME test suite for use with GnuPG 2.1.
|
|
|
|
diff --git a/tests/gpg/t-encrypt-sign.c b/tests/gpg/t-encrypt-sign.c
|
|
index 9da5ff0..9d00340 100644
|
|
--- a/tests/gpg/t-encrypt-sign.c
|
|
+++ b/tests/gpg/t-encrypt-sign.c
|
|
@@ -60,7 +60,8 @@ check_result (gpgme_sign_result_t result, gpgme_sig_mode_t type)
|
|
result->signatures->pubkey_algo);
|
|
exit (1);
|
|
}
|
|
- if (result->signatures->hash_algo != GPGME_MD_SHA1)
|
|
+ if (result->signatures->hash_algo != GPGME_MD_SHA1
|
|
+ && result->signatures->hash_algo != GPGME_MD_RMD160)
|
|
{
|
|
fprintf (stderr, "Wrong hash algorithm reported: %i\n",
|
|
result->signatures->hash_algo);
|