|
Archeus 0.0.0
A C library and game engine that focuses on documentation
|
#include "arc/networking/ssh.h"#include "arc/std/errno.h"#include "arc/std/string.h"#include <stdint.h>#include <stdlib.h>#include <libssh/libssh.h>Go to the source code of this file.
Data Structures | |
| struct | ARC_Ssh |
Functions | |
| int | verify_knownhost (ssh_session session) |
| void | ARC_Ssh_Create (ARC_Ssh **ssh, char *host, char *user, char *password) |
| creates ARC_Ssh type | |
| void | ARC_Ssh_Destroy (ARC_Ssh *ssh) |
| destroyes ARC_Ssh type | |
| void | ARC_Ssh_RunInSession (ARC_Ssh *ssh, ARC_Ssh_SessionFn sessionFn) |
| runs a callback function within a ssh session | |
| void | ARC_Ssh_ExecStrInNewSession (ARC_Ssh *ssh, char *command) |
| ARC_String * | ARC_Ssh_ExecStrInNewSessionAndGetResponse (ARC_Ssh *ssh, char *command) |
| void ARC_Ssh_Create | ( | ARC_Ssh ** | ssh, |
| char * | host, | ||
| char * | user, | ||
| char * | password ) |
creates ARC_Ssh type
| ssh | ARC_Ssh to create |
Definition at line 94 of file ssh.c.
References arc_errno, ARC_ERRNO_CONNECTION, ARC_ERRNO_NULL, ARC_Ssh::session, and verify_knownhost().
| void ARC_Ssh_Destroy | ( | ARC_Ssh * | ssh | ) |
| void ARC_Ssh_ExecStrInNewSession | ( | ARC_Ssh * | ssh, |
| char * | command ) |
Definition at line 199 of file ssh.c.
References arc_errno, ARC_ERRNO_CONNECTION, ARC_ERRNO_DATA, ARC_ERRNO_NULL, and ARC_Ssh::session.
| ARC_String * ARC_Ssh_ExecStrInNewSessionAndGetResponse | ( | ARC_Ssh * | ssh, |
| char * | command ) |
Definition at line 227 of file ssh.c.
References arc_errno, ARC_ERRNO_CONNECTION, ARC_ERRNO_DATA, ARC_ERRNO_NULL, ARC_String_AppendCString(), ARC_String_Create(), ARC_String_Destroy(), and ARC_Ssh::session.
| void ARC_Ssh_RunInSession | ( | ARC_Ssh * | ssh, |
| ARC_Ssh_SessionFn | sessionFn ) |
runs a callback function within a ssh session
| ssh | ARC_Ssh to create and run function in ssh session |
| sessionFN | callback to run in a ssh session |
Definition at line 172 of file ssh.c.
References arc_errno, ARC_ERRNO_CONNECTION, ARC_ERRNO_NULL, and ARC_Ssh::session.
| int verify_knownhost | ( | ssh_session | session | ) |
Definition at line 15 of file ssh.c.
Referenced by ARC_Ssh_Create().