From ffed8b03bb6e170abbd9564547ba439302840618 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 23 Sep 2009 21:40:58 +0200 Subject: remove the broken setters for options,cb init macro --- include/libssh/callback.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/libssh/callback.h') diff --git a/include/libssh/callback.h b/include/libssh/callback.h index 3e1a1fab..fd60bc10 100644 --- a/include/libssh/callback.h +++ b/include/libssh/callback.h @@ -27,7 +27,7 @@ #define _SSH_CALLBACK_H #include "libssh.h" - +#include /** * @brief SSH authentication callback. * @@ -55,6 +55,10 @@ struct ssh_callbacks_struct { }; typedef struct ssh_callbacks_struct * ssh_callbacks; +#define ssh_callbacks_init(p) do {\ + memset(p,'\0',sizeof(*p)); \ + p->size=sizeof(*p); \ +} while(0); LIBSSH_API int ssh_options_set_auth_callback(SSH_OPTIONS *opt, ssh_auth_callback cb, void *userdata); -- cgit