diff options
author | Paul Capron <paul@fragara.com> | 2020-09-25 11:06:57 +0200 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2020-09-29 13:05:34 +0200 |
commit | 400f4f23298f43b8b9d35ce3f9e7f50f654cf317 (patch) | |
tree | a8899b97cd2c33491d26937d8e66546a4a5d2197 /src/pki_gcrypt.c | |
parent | b3a11e0185691c18eea8951d2b1ee20c4c120c08 (diff) | |
download | libssh-400f4f23298f43b8b9d35ce3f9e7f50f654cf317.tar.gz libssh-400f4f23298f43b8b9d35ce3f9e7f50f654cf317.tar.xz libssh-400f4f23298f43b8b9d35ce3f9e7f50f654cf317.zip |
pki_gcrypt.c: Fix typo + inconsistency in warning
In function pki_signature_from_blob(), the warning message in case of
an oversized RSA key was missing an ‘o’ (reading “to” instead of “too”).
While we are here, make this oversized message the same than the ones
found in pki_crypto.c & pki_mbedcrypto.c: put the expected size in it.
The message in case of an _under_sized key include the expected size,
so that’s more consistent in that regard too (and more informative!)
Signed-off-by: Paul Capron <paul@fragara.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src/pki_gcrypt.c')
-rw-r--r-- | src/pki_gcrypt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c index 62ec8ea7..0373cdae 100644 --- a/src/pki_gcrypt.c +++ b/src/pki_gcrypt.c @@ -1983,8 +1983,9 @@ ssh_signature pki_signature_from_blob(const ssh_key pubkey, if (len > rsalen) { SSH_LOG(SSH_LOG_WARN, - "Signature is to big size: %lu", - (unsigned long)len); + "Signature is too big: %lu > %lu", + (unsigned long)len, + (unsigned long)rsalen); ssh_signature_free(sig); return NULL; } |