I'd like to use ssh_userauth_publickey_auto function to authenticate via pubkey. The problem is that it doesn't allow specifying a callback for getting the password. Ideally the prompt for the password should include the filename of the key that the user is unlocking. ssh_pki_import_privkey_file does allow a callback, but I lose the "auto" functionality (and also, it the prompt arg of the callback doesn't say the filename).
Is it possible for ssh_userauth_publickey_auto to allow specifying a password unlock callback?