From 400f4f23298f43b8b9d35ce3f9e7f50f654cf317 Mon Sep 17 00:00:00 2001 From: Paul Capron Date: Fri, 25 Sep 2020 11:06:57 +0200 Subject: pki_gcrypt.c: Fix typo + inconsistency in warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jakub Jelen --- src/pki_gcrypt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3