mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
SSH_LOG_DEBUG: Recategorize loglevels
Loglevel INFO is the default openssh configuration setting which does not print redundant information. On a system using openssh with loglevels set by the terms of openssh will cause unwanted log lines in the output. recategorized based on - SSH_LOG_DEBUG are informational debug logs (no error) Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
7ea75cda45
commit
657d9143d1
@@ -298,7 +298,7 @@ ssh_pki_openssh_import(const char *text_key,
|
||||
SSH_LOG(SSH_LOG_TRACE, "Not an OpenSSH private key (bad magic)");
|
||||
goto out;
|
||||
}
|
||||
SSH_LOG(SSH_LOG_INFO,
|
||||
SSH_LOG(SSH_LOG_DEBUG,
|
||||
"Opening OpenSSH private key: ciphername: %s, kdf: %s, nkeys: %d",
|
||||
ciphername,
|
||||
kdfname,
|
||||
@@ -478,7 +478,7 @@ static int pki_private_key_encrypt(ssh_buffer privkey_buffer,
|
||||
return SSH_ERROR;
|
||||
}
|
||||
|
||||
SSH_LOG(SSH_LOG_WARN, "Encryption: %d key, %d IV, %d rounds, %zu bytes salt",
|
||||
SSH_LOG(SSH_LOG_DEBUG, "Encryption: %d key, %d IV, %d rounds, %zu bytes salt",
|
||||
cipher.keysize/8,
|
||||
cipher.blocksize, rounds, ssh_string_len(salt));
|
||||
|
||||
@@ -559,7 +559,7 @@ ssh_string ssh_pki_openssh_privkey_export(const ssh_key privkey,
|
||||
return NULL;
|
||||
}
|
||||
if (passphrase != NULL || auth_fn != NULL){
|
||||
SSH_LOG(SSH_LOG_INFO, "Enabling encryption for private key export");
|
||||
SSH_LOG(SSH_LOG_DEBUG, "Enabling encryption for private key export");
|
||||
to_encrypt = 1;
|
||||
}
|
||||
buffer = ssh_buffer_new();
|
||||
|
||||
Reference in New Issue
Block a user