Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Provide authentication error reporting to cred_acquire_cb #3761

@wildart

Description

@wildart

I'm trying to implement a credential caching mechanism in git_cred_acquire_cb function. However, SSH session authentication does not report any error for libssh2 calls that return LIBSSH2_ERROR_PASSWORD_EXPIRED or LIBSSH2_ERROR_AUTHENTICATION_FAILED error codes (see _git_ssh_authenticate_session). The only exception is the ssh-agent authentication that sets error when failed. Failure to report auth errors makes impossible to identify if cached credentials where correct or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions