From 55e674ea903ede3d89b564fef153b4761e94c5da Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 12 Sep 2008 17:23:56 +0000 Subject: - Rework pubkey options to be more careful about buffer lengths. Needs review. --- auth.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auth.h') diff --git a/auth.h b/auth.h index d6a50a4..83a2f8e 100644 --- a/auth.h +++ b/auth.h @@ -46,7 +46,7 @@ int svr_pubkey_allows_x11fwd(); int svr_pubkey_allows_pty(); void svr_pubkey_set_forced_command(struct ChanSess *chansess); void svr_pubkey_options_cleanup(); -int svr_add_pubkey_options(const char* opts); +int svr_add_pubkey_options(buffer *options_buf, int line_num, const char* filename); #else /* no option : success */ #define svr_pubkey_allows_agentfwd() 1 @@ -55,7 +55,7 @@ int svr_add_pubkey_options(const char* opts); #define svr_pubkey_allows_pty() 1 static inline void svr_pubkey_set_forced_command(struct ChanSess *chansess) { } static inline void svr_pubkey_options_cleanup() { } -#define svr_add_pubkey_options(x) DROPBEAR_SUCCESS +#define svr_add_pubkey_options(x,y,z) DROPBEAR_SUCCESS #endif /* Client functions */ -- cgit v1.2.1