git_credential_ssh_key_new

Create a new passphrase-protected ssh key credential object. The supplied credential parameter will be internally duplicated.

extern (C) nothrow @nogc
int
git_credential_ssh_key_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 path to the public key of the credential.

privatekey const(char)*

The path to 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