1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-06-25 14:02:05 +03:00

examples: Zero fds in sshnetcat

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-09-27 15:52:28 +02:00
parent fb70d0fb41
commit 12ec1fed2f
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,10 @@ clients must be made or how a client should react.
#define EXAMPLES_COMMON_H_
#include <libssh/libssh.h>
/** Zero a structure */
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
int authenticate_console(ssh_session session);
int authenticate_kbdint(ssh_session session, const char *password);
int verify_knownhost(ssh_session session);