aboutsummaryrefslogtreecommitdiff
path: root/examples/examples_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/examples_common.h')
-rw-r--r--examples/examples_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/examples_common.h b/examples/examples_common.h
index 13eb455c..d3f4e1aa 100644
--- a/examples/examples_common.h
+++ b/examples/examples_common.h
@@ -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);