Blame examples/examples_common.h
|
Packit Service |
31306d |
/*
|
|
Packit Service |
31306d |
Copyright 2009 Aris Adamantiadis
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
This file is part of the SSH Library
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
You are free to copy this file, modify it in any way, consider it being public
|
|
Packit Service |
31306d |
domain. This does not apply to the rest of the library though, but it is
|
|
Packit Service |
31306d |
allowed to cut-and-paste working code from this file to any license of
|
|
Packit Service |
31306d |
program.
|
|
Packit Service |
31306d |
The goal is to show the API in action. It's not a reference on how terminal
|
|
Packit Service |
31306d |
clients must be made or how a client should react.
|
|
Packit Service |
31306d |
*/
|
|
Packit Service |
31306d |
#ifndef EXAMPLES_COMMON_H_
|
|
Packit Service |
31306d |
#define EXAMPLES_COMMON_H_
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#include <libssh/libssh.h>
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
/** Zero a structure */
|
|
Packit Service |
31306d |
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
int authenticate_console(ssh_session session);
|
|
Packit Service |
31306d |
int authenticate_kbdint(ssh_session session, const char *password);
|
|
Packit Service |
31306d |
int verify_knownhost(ssh_session session);
|
|
Packit Service |
31306d |
ssh_session connect_ssh(const char *hostname, const char *user, int verbosity);
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#endif /* EXAMPLES_COMMON_H_ */
|