SSHInterface Class Reference

#include <cryptography_ssh.h>

Detailed Description

This interface maps all libssh2 functions into a interface.

Static Public Member Functions

static MAXON_METHOD LIBSSH2_SESSIONlibssh2_session_init ()
 
static MAXON_METHOD int libssh2_session_disconnect_ex (LIBSSH2_SESSION *session, int reason, const char *description, const char *lang)
 
static MAXON_METHOD int libssh2_session_free (LIBSSH2_SESSION *session)
 
static MAXON_METHOD void libssh2_session_set_blocking (LIBSSH2_SESSION *session, int blocking)
 
static MAXON_METHOD int libssh2_session_handshake (LIBSSH2_SESSION *session, Int socket)
 
static MAXON_METHOD const char * libssh2_hostkey_hash (LIBSSH2_SESSION *session, int hash_type)
 
static MAXON_METHOD const char * libssh2_userauth_list (LIBSSH2_SESSION *session, const char *username, unsigned int username_len)
 
static MAXON_METHOD int libssh2_userauth_password_ex (LIBSSH2_SESSION *session, const char *username, unsigned int username_len, const char *password, unsigned int password_len, LIBSSH2_PASSWD_CHANGEREQ_FUNC passwd_change_cb)
 
static MAXON_METHOD int libssh2_session_last_error (LIBSSH2_SESSION *session, char **errmsg, int *errmsg_len, int want_buf)
 
static MAXON_METHOD LIBSSH2_SFTPlibssh2_sftp_init (LIBSSH2_SESSION *session)
 
static MAXON_METHOD int libssh2_sftp_shutdown (LIBSSH2_SFTP *sftp)
 
static MAXON_METHOD LIBSSH2_SFTP_HANDLElibssh2_sftp_open_ex (LIBSSH2_SFTP *sftp, const char *filename, unsigned int filename_len, unsigned long flags, long mode, int open_type)
 
static int libssh2_sftp_close (LIBSSH2_SFTP_HANDLE *handle)
 
static int libssh2_sftp_closedir (LIBSSH2_SFTP_HANDLE *handle)
 
static MAXON_METHOD int libssh2_sftp_close_handle (LIBSSH2_SFTP_HANDLE *handle)
 
static MAXON_METHOD int libssh2_sftp_unlink_ex (LIBSSH2_SFTP *sftp, const char *filename, unsigned int filename_len)
 
static MAXON_METHOD int libssh2_sftp_mkdir_ex (LIBSSH2_SFTP *sftp, const char *path, unsigned int path_len, long mode)
 
static MAXON_METHOD int libssh2_sftp_rmdir_ex (LIBSSH2_SFTP *sftp, const char *path, unsigned int path_len)
 
static MAXON_METHOD int libssh2_sftp_fstat_ex (LIBSSH2_SFTP_HANDLE *handle, LIBSSH2_SFTP_ATTRIBUTES *attrs, bool setstat)
 
static MAXON_METHOD int libssh2_sftp_stat_ex (LIBSSH2_SFTP *sftp, const char *path, unsigned int path_len, int stat_type, LIBSSH2_SFTP_ATTRIBUTES *attrs)
 
static MAXON_METHOD Int libssh2_sftp_read (LIBSSH2_SFTP_HANDLE *handle, char *buffer, size_t buffer_maxlen)
 
static MAXON_METHOD Int libssh2_sftp_write (LIBSSH2_SFTP_HANDLE *handle, const char *buffer, size_t count)
 
static MAXON_METHOD int libssh2_sftp_readdir_ex (LIBSSH2_SFTP_HANDLE *handle, char *buffer, size_t buffer_maxlen, char *longentry, size_t longentry_maxlen, LIBSSH2_SFTP_ATTRIBUTES *attrs)
 
static MAXON_METHOD void libssh2_sftp_seek64 (LIBSSH2_SFTP_HANDLE *handle, UInt64 offset)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (SSHInterface, MAXON_REFERENCE_NONE, "net.maxon.interface.ssh")
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( SSHInterface  ,
MAXON_REFERENCE_NONE  ,
"net.maxon.interface.ssh"   
)
private

◆ libssh2_session_init()

static MAXON_METHOD LIBSSH2_SESSION* libssh2_session_init ( )
static

◆ libssh2_session_disconnect_ex()

static MAXON_METHOD int libssh2_session_disconnect_ex ( LIBSSH2_SESSION session,
int  reason,
const char *  description,
const char *  lang 
)
static

◆ libssh2_session_free()

static MAXON_METHOD int libssh2_session_free ( LIBSSH2_SESSION session)
static

◆ libssh2_session_set_blocking()

static MAXON_METHOD void libssh2_session_set_blocking ( LIBSSH2_SESSION session,
int  blocking 
)
static

◆ libssh2_session_handshake()

static MAXON_METHOD int libssh2_session_handshake ( LIBSSH2_SESSION session,
Int  socket 
)
static

◆ libssh2_hostkey_hash()

static MAXON_METHOD const char* libssh2_hostkey_hash ( LIBSSH2_SESSION session,
int  hash_type 
)
static

◆ libssh2_userauth_list()

static MAXON_METHOD const char* libssh2_userauth_list ( LIBSSH2_SESSION session,
const char *  username,
unsigned int  username_len 
)
static

◆ libssh2_userauth_password_ex()

static MAXON_METHOD int libssh2_userauth_password_ex ( LIBSSH2_SESSION session,
const char *  username,
unsigned int  username_len,
const char *  password,
unsigned int  password_len,
LIBSSH2_PASSWD_CHANGEREQ_FUNC  passwd_change_cb 
)
static

◆ libssh2_session_last_error()

static MAXON_METHOD int libssh2_session_last_error ( LIBSSH2_SESSION session,
char **  errmsg,
int errmsg_len,
int  want_buf 
)
static

◆ libssh2_sftp_init()

static MAXON_METHOD LIBSSH2_SFTP* libssh2_sftp_init ( LIBSSH2_SESSION session)
static

◆ libssh2_sftp_shutdown()

static MAXON_METHOD int libssh2_sftp_shutdown ( LIBSSH2_SFTP sftp)
static

◆ libssh2_sftp_open_ex()

static MAXON_METHOD LIBSSH2_SFTP_HANDLE* libssh2_sftp_open_ex ( LIBSSH2_SFTP sftp,
const char *  filename,
unsigned int  filename_len,
unsigned long  flags,
long  mode,
int  open_type 
)
static

◆ libssh2_sftp_close()

static int libssh2_sftp_close ( LIBSSH2_SFTP_HANDLE handle)
static

◆ libssh2_sftp_closedir()

static int libssh2_sftp_closedir ( LIBSSH2_SFTP_HANDLE handle)
static

◆ libssh2_sftp_close_handle()

static MAXON_METHOD int libssh2_sftp_close_handle ( LIBSSH2_SFTP_HANDLE handle)
static

◆ libssh2_sftp_unlink_ex()

static MAXON_METHOD int libssh2_sftp_unlink_ex ( LIBSSH2_SFTP sftp,
const char *  filename,
unsigned int  filename_len 
)
static

◆ libssh2_sftp_mkdir_ex()

static MAXON_METHOD int libssh2_sftp_mkdir_ex ( LIBSSH2_SFTP sftp,
const char *  path,
unsigned int  path_len,
long  mode 
)
static

◆ libssh2_sftp_rmdir_ex()

static MAXON_METHOD int libssh2_sftp_rmdir_ex ( LIBSSH2_SFTP sftp,
const char *  path,
unsigned int  path_len 
)
static

◆ libssh2_sftp_fstat_ex()

static MAXON_METHOD int libssh2_sftp_fstat_ex ( LIBSSH2_SFTP_HANDLE handle,
LIBSSH2_SFTP_ATTRIBUTES attrs,
bool  setstat 
)
static

◆ libssh2_sftp_stat_ex()

static MAXON_METHOD int libssh2_sftp_stat_ex ( LIBSSH2_SFTP sftp,
const char *  path,
unsigned int  path_len,
int  stat_type,
LIBSSH2_SFTP_ATTRIBUTES attrs 
)
static

◆ libssh2_sftp_read()

static MAXON_METHOD Int libssh2_sftp_read ( LIBSSH2_SFTP_HANDLE handle,
char *  buffer,
size_t  buffer_maxlen 
)
static

◆ libssh2_sftp_write()

static MAXON_METHOD Int libssh2_sftp_write ( LIBSSH2_SFTP_HANDLE handle,
const char *  buffer,
size_t  count 
)
static

◆ libssh2_sftp_readdir_ex()

static MAXON_METHOD int libssh2_sftp_readdir_ex ( LIBSSH2_SFTP_HANDLE handle,
char *  buffer,
size_t  buffer_maxlen,
char *  longentry,
size_t  longentry_maxlen,
LIBSSH2_SFTP_ATTRIBUTES attrs 
)
static

◆ libssh2_sftp_seek64()

static MAXON_METHOD void libssh2_sftp_seek64 ( LIBSSH2_SFTP_HANDLE handle,
UInt64  offset 
)
static