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>
Этот коммит содержится в:
родитель
b3a11e0185
Коммит
400f4f2329
@ -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;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user