git_credential_ssh_key_memory_new

Create a new ssh key credential object reading the keys from memory.

extern (C) nothrow @nogc
int
git_credential_ssh_key_memory_new
(,
const(char)* username
,
const(char)* publickey
,
const(char)* privatekey
,
const(char)* passphrase
)

Parameters

out_ .git_credential**

The newly created credential object.

username const(char)*

username to use to authenticate.

publickey const(char)*

The public key of the credential.

privatekey const(char)*

The private key of the credential.

passphrase const(char)*

The passphrase of the credential.

Return Value

Type: int

0 for success or an error code for failure

Meta