From 7d63aa42e5d2c086810e3d7eca64a01f366b4e88 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 29 Sep 2008 15:02:55 +0000 Subject: Remove hacks which are not anymore needed since we now require Libgcrypt 1.4 --- g10/seskey.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'g10/seskey.c') diff --git a/g10/seskey.c b/g10/seskey.c index b843530dc..cc3c32ea7 100644 --- a/g10/seskey.c +++ b/g10/seskey.c @@ -265,11 +265,9 @@ encode_md_value (PKT_public_key *pk, PKT_secret_key *sk, byte *asn; size_t asnlen; - rc = gcry_md_test_algo (hash_algo); - if (!rc) - rc = gcry_md_algo_info (hash_algo, GCRYCTL_GET_ASNOID, NULL, &asnlen); + rc = gcry_md_algo_info (hash_algo, GCRYCTL_GET_ASNOID, NULL, &asnlen); if (rc) - log_fatal ("can't get OID of algo %d: %s\n", + log_fatal ("can't get OID of digest algorithm %d: %s\n", hash_algo, gpg_strerror (rc)); asn = xmalloc (asnlen); if ( gcry_md_algo_info (hash_algo, GCRYCTL_GET_ASNOID, asn, &asnlen) ) -- cgit v1.2.3