2009-07-25 19:03:01 +04:00
|
|
|
/*
|
|
|
|
Copyright 2009 Aris Adamantiadis
|
|
|
|
|
|
|
|
This file is part of the SSH Library
|
|
|
|
|
|
|
|
You are free to copy this file, modify it in any way, consider it being public
|
|
|
|
domain. This does not apply to the rest of the library though, but it is
|
|
|
|
allowed to cut-and-paste working code from this file to any license of
|
|
|
|
program.
|
|
|
|
The goal is to show the API in action. It's not a reference on how terminal
|
|
|
|
clients must be made or how a client should react.
|
|
|
|
*/
|
|
|
|
#ifndef EXAMPLES_COMMON_H_
|
|
|
|
#define EXAMPLES_COMMON_H_
|
|
|
|
|
2009-09-06 13:54:57 +04:00
|
|
|
#include <libssh/libssh.h>
|
2009-07-25 19:03:01 +04:00
|
|
|
int authenticate_console(ssh_session session);
|
2011-01-08 12:17:37 +03:00
|
|
|
int authenticate_kbdint(ssh_session session, const char *password);
|
2009-07-25 19:03:01 +04:00
|
|
|
int verify_knownhost(ssh_session session);
|
2009-09-06 13:54:57 +04:00
|
|
|
ssh_session connect_ssh(const char *hostname, const char *user, int verbosity);
|
2009-07-25 19:03:01 +04:00
|
|
|
|
|
|
|
#endif /* EXAMPLES_COMMON_H_ */
|