aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-05-21 13:01:58 +0000
committerMartin Willi <martin@strongswan.org>2008-05-21 13:01:58 +0000
commit4f23ec78d149f12bbe228abf281e13fdc02d33be (patch)
treed7c2025259df8850a755041e69154f2e1a50106a /src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c
parent8bbb212f3a62a70723305ca8b75a8bc3d4a3bc7f (diff)
downloadstrongswan-4f23ec78d149f12bbe228abf281e13fdc02d33be.tar.bz2
strongswan-4f23ec78d149f12bbe228abf281e13fdc02d33be.tar.xz
added more verbosity if signature hash OID is unknown
Diffstat (limited to 'src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c')
-rw-r--r--src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c b/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c
index 779da6881..761a676af 100644
--- a/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c
+++ b/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c
@@ -219,7 +219,9 @@ static bool verify_emsa_pkcs1_signature(private_gmp_rsa_public_key_t *this,
if (hash_algorithm == HASH_UNKNOWN ||
(algorithm != HASH_UNKNOWN && hash_algorithm != algorithm))
{
- DBG1("wrong hash algorithm used in signature");
+ DBG1("expected hash algorithm %N, but found %N (OID: %#B)",
+ hash_algorithm_names, algorithm,
+ hash_algorithm_names, hash_algorithm, &object);
goto end_parser;
}
break;