comparison auth.h @ 476:df7f7da7f6e4 pubkey-options

- Rework pubkey options to be more careful about buffer lengths. Needs review.
author Matt Johnston <matt@ucc.asn.au>
date Fri, 12 Sep 2008 17:23:56 +0000
parents 52a644e7b8e1
children d588e3ea557a 9e51707cd6f2
comparison
equal deleted inserted replaced
475:52a644e7b8e1 476:df7f7da7f6e4
44 int svr_pubkey_allows_tcpfwd(); 44 int svr_pubkey_allows_tcpfwd();
45 int svr_pubkey_allows_x11fwd(); 45 int svr_pubkey_allows_x11fwd();
46 int svr_pubkey_allows_pty(); 46 int svr_pubkey_allows_pty();
47 void svr_pubkey_set_forced_command(struct ChanSess *chansess); 47 void svr_pubkey_set_forced_command(struct ChanSess *chansess);
48 void svr_pubkey_options_cleanup(); 48 void svr_pubkey_options_cleanup();
49 int svr_add_pubkey_options(const char* opts); 49 int svr_add_pubkey_options(buffer *options_buf, int line_num, const char* filename);
50 #else 50 #else
51 /* no option : success */ 51 /* no option : success */
52 #define svr_pubkey_allows_agentfwd() 1 52 #define svr_pubkey_allows_agentfwd() 1
53 #define svr_pubkey_allows_tcpfwd() 1 53 #define svr_pubkey_allows_tcpfwd() 1
54 #define svr_pubkey_allows_x11fwd() 1 54 #define svr_pubkey_allows_x11fwd() 1
55 #define svr_pubkey_allows_pty() 1 55 #define svr_pubkey_allows_pty() 1
56 static inline void svr_pubkey_set_forced_command(struct ChanSess *chansess) { } 56 static inline void svr_pubkey_set_forced_command(struct ChanSess *chansess) { }
57 static inline void svr_pubkey_options_cleanup() { } 57 static inline void svr_pubkey_options_cleanup() { }
58 #define svr_add_pubkey_options(x) DROPBEAR_SUCCESS 58 #define svr_add_pubkey_options(x,y,z) DROPBEAR_SUCCESS
59 #endif 59 #endif
60 60
61 /* Client functions */ 61 /* Client functions */
62 void recv_msg_userauth_failure(); 62 void recv_msg_userauth_failure();
63 void recv_msg_userauth_success(); 63 void recv_msg_userauth_success();