git_credential_ssh_custom_new

Create an ssh key credential with a custom signing function.

This lets you use your own function to sign the challenge.

This function and its credential type is provided for completeness and wraps libssh2_userauth_publickey(), which is undocumented.

The supplied credential parameter will be internally duplicated.

@param out_ The newly created credential object. @param username username to use to authenticate @param publickey The bytes of the public key. @param publickey_len The length of the public key in bytes. @param sign_callback The callback method to sign the data during the challenge. @param payload Additional data to pass to the callback. @return 0 for success or an error code for failure

extern (C) nothrow @nogc
int
git_credential_ssh_custom_new

Meta