5 Struct N_GIT_REMOTE_AUTH
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_GIT_REMOTE_AUTH

Module: GIT: libgit2 wrapper for repository operations

Credentials for remote operations.

#include "n_git.h"

Public Attributes

Name
char * username
username for basic auth or SSH, or NULL
int type
auth type: N_GIT_AUTH_NONE/TOKEN/BASIC/SSH
char * ssh_pubkey_path
path to SSH public key file, or NULL (derived from private key + ".pub")
char * ssh_privkey_path
path to SSH private key file, or NULL
char * ssh_passphrase
passphrase for SSH key, or NULL
char * password
password or personal access token, or NULL

Public Attributes Documentation

variable username

char * username;

username for basic auth or SSH, or NULL

variable type

int type;

auth type: N_GIT_AUTH_NONE/TOKEN/BASIC/SSH

variable ssh_pubkey_path

char * ssh_pubkey_path;

path to SSH public key file, or NULL (derived from private key + ".pub")

variable ssh_privkey_path

char * ssh_privkey_path;

path to SSH private key file, or NULL

variable ssh_passphrase

char * ssh_passphrase;

passphrase for SSH key, or NULL

variable password

char * password;

password or personal access token, or NULL