diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-09-27 15:47:54 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-10-24 09:48:35 +0200 |
commit | 729384f346f8d99d16b15e746a4dce5600c28661 (patch) | |
tree | b0f413d5e0ed8dfd13dd4d67e32c89209fb269b1 /src | |
parent | 7e5291668ca52fdb97cea8751b3607408935da61 (diff) | |
download | libssh-729384f346f8d99d16b15e746a4dce5600c28661.tar.gz libssh-729384f346f8d99d16b15e746a4dce5600c28661.tar.xz libssh-729384f346f8d99d16b15e746a4dce5600c28661.zip |
pki: Add log message on error in ssh_pki_openssh_import()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pki_container_openssh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pki_container_openssh.c b/src/pki_container_openssh.c index a287d71d..f9f61174 100644 --- a/src/pki_container_openssh.c +++ b/src/pki_container_openssh.c @@ -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; } |