1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

pki: Add log message on error in ssh_pki_openssh_import()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-09-27 15:47:54 +02:00
parent 7e5291668c
commit 729384f346

View File

@@ -313,6 +313,9 @@ ssh_pki_openssh_import(const char *text_key,
*/
if (!private) {
rc = ssh_pki_import_pubkey_blob(pubkey0, &key);
if (rc != SSH_OK) {
SSH_LOG(SSH_LOG_WARN, "Failed to import public key blob");
}
/* in either case we clean up here */
goto out;
}