Create a new ssh key credential object reading the keys from memory.
int git_credential_ssh_key_memory_new(git_credential **out, const char *username, const char *publickey, const char *privatekey, const char *passphrase);
In
out
The newly created credential object.
const char *
In
username
username to use to authenticate.
const char *
In
publickey
The public key of the credential.
const char *
In
privatekey
The private key of the credential.
const char *
In
passphrase
The passphrase of the credential.
int
0 for success or an error code for failure