diff options
author | Martin Willi <martin@strongswan.org> | 2008-05-21 13:01:58 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-05-21 13:01:58 +0000 |
commit | 4f23ec78d149f12bbe228abf281e13fdc02d33be (patch) | |
tree | d7c2025259df8850a755041e69154f2e1a50106a /src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c | |
parent | 8bbb212f3a62a70723305ca8b75a8bc3d4a3bc7f (diff) | |
download | strongswan-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.c | 4 |
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; |