[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getting details on ssh_pki_* errors
[Thread Prev] | [Thread Next]
- Subject: getting details on ssh_pki_* errors
- From: John Dunn <John.Dunn@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 5 May 2021 18:16:55 +0000
- To: "libssh@xxxxxxxxxx" <libssh@xxxxxxxxxx>
Is it possible to get more details when SSH_ERROR is returned from the various ssh_pki_* functions? For example, if I pass the wrong password into ssh_pki_import_privkey_file I see 'OpenSSH private key unpack error (correct password?)' printed out. In other cases ( like if I corrupt the file itself ) the call fails but nothing appears to be printed. In both these cases I'd like to report a useful error message to the user. Thanks John
Archive administrator: postmaster@lists.cynapses.org