Skip to content

Commit

Permalink
src,include: code format: replace tabs with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Nov 24, 2023
1 parent 6f1cbdf commit f177de8
Show file tree
Hide file tree
Showing 2 changed files with 235 additions and 235 deletions.
44 changes: 22 additions & 22 deletions include/libsshtunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ typedef enum {
@param error_message Human-readable error message
*/
typedef void (*ssh_tunnel_signal_error_func_t)(void *client,
ssh_tunnel_error_t error_code,
const char *error_message);
ssh_tunnel_error_t error_code,
const char *error_message);

/**
Decide whether or not the SSH tunnel setup should continue
Expand All @@ -72,9 +72,9 @@ typedef void (*ssh_tunnel_signal_error_func_t)(void *client,
0 if tunnel setup should continue
*/
typedef int (*ssh_tunnel_fingerprint_check_func_t)(void *client,
const char *fingerprint,
int fingerprint_len,
const char *host);
const char *fingerprint,
int fingerprint_len,
const char *host);


/**
Expand All @@ -100,13 +100,13 @@ int ssh_tunnel_init();
@return An open SSH tunnel to \p remote_host via \p ssh_host, listening on localhost.
*/
ssh_tunnel_t* ssh_tunnel_open_with_password(const char *ssh_host,
const char *ssh_user,
const char *ssh_password,
const char *remote_host,
int remote_port,
void *client,
ssh_tunnel_fingerprint_check_func_t ssh_fingerprint_check_callback,
ssh_tunnel_signal_error_func_t error_callback);
const char *ssh_user,
const char *ssh_password,
const char *remote_host,
int remote_port,
void *client,
ssh_tunnel_fingerprint_check_func_t ssh_fingerprint_check_callback,
ssh_tunnel_signal_error_func_t error_callback);


/**
Expand All @@ -126,23 +126,23 @@ ssh_tunnel_t* ssh_tunnel_open_with_password(const char *ssh_host,
@return An open SSH tunnel to \p remote_host via \p ssh_host, listening on localhost.
*/
ssh_tunnel_t* ssh_tunnel_open_with_privkey(const char *ssh_host,
const char *ssh_user,
const char *ssh_priv_key,
int ssh_priv_key_len,
const char *ssh_priv_key_password,
const char *remote_host,
int remote_port,
void *client,
ssh_tunnel_fingerprint_check_func_t ssh_fingerprint_check_callback,
ssh_tunnel_signal_error_func_t error_callback);
const char *ssh_user,
const char *ssh_priv_key,
int ssh_priv_key_len,
const char *ssh_priv_key_password,
const char *remote_host,
int remote_port,
void *client,
ssh_tunnel_fingerprint_check_func_t ssh_fingerprint_check_callback,
ssh_tunnel_signal_error_func_t error_callback);


/**
Get the local port of an SSH tunnel. Once having been connected to,
this will return 0 and the tunnel will not accept new connections.
@return The local port to connect to or
@c 0 if the tunnel has already been connected or
@c -1 if the tunnel is invalid.
@c -1 if the tunnel is invalid.
*/
int ssh_tunnel_get_port(ssh_tunnel_t *tunnel);

Expand Down
Loading

0 comments on commit f177de8

Please sign in to comment.