diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2016-01-01 16:30:31 +0100 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-03-16 22:41:20 +0800 |
commit | 3e20c442de30c583b1728500c782641f88dedbfa (patch) | |
tree | cd4fcdf5ab851bde43daea855e58d49db5598dde /auth.h | |
parent | af87369cb32d4e967c389cce35f508817682f077 (diff) |
fix empty C prototypes
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 54 |
1 files changed, 27 insertions, 27 deletions
@@ -29,25 +29,25 @@ #include "signkey.h" #include "chansession.h" -void svr_authinitialise(); -void cli_authinitialise(); +void svr_authinitialise(void); +void cli_authinitialise(void); /* Server functions */ -void recv_msg_userauth_request(); +void recv_msg_userauth_request(void); void send_msg_userauth_failure(int partial, int incrfail); -void send_msg_userauth_success(); +void send_msg_userauth_success(void); void send_msg_userauth_banner(buffer *msg); -void svr_auth_password(); -void svr_auth_pubkey(); -void svr_auth_pam(); +void svr_auth_password(void); +void svr_auth_pubkey(void); +void svr_auth_pam(void); #ifdef ENABLE_SVR_PUBKEY_OPTIONS -int svr_pubkey_allows_agentfwd(); -int svr_pubkey_allows_tcpfwd(); -int svr_pubkey_allows_x11fwd(); -int svr_pubkey_allows_pty(); +int svr_pubkey_allows_agentfwd(void); +int svr_pubkey_allows_tcpfwd(void); +int svr_pubkey_allows_x11fwd(void); +int svr_pubkey_allows_pty(void); void svr_pubkey_set_forced_command(struct ChanSess *chansess); -void svr_pubkey_options_cleanup(); +void svr_pubkey_options_cleanup(void); int svr_add_pubkey_options(buffer *options_buf, int line_num, const char* filename); #else /* no option : success */ @@ -56,26 +56,26 @@ int svr_add_pubkey_options(buffer *options_buf, int line_num, const char* filena #define svr_pubkey_allows_x11fwd() 1 #define svr_pubkey_allows_pty() 1 static inline void svr_pubkey_set_forced_command(struct ChanSess *chansess) { } -static inline void svr_pubkey_options_cleanup() { } +static inline void svr_pubkey_options_cleanup(void) { } #define svr_add_pubkey_options(x,y,z) DROPBEAR_SUCCESS #endif /* Client functions */ -void recv_msg_userauth_failure(); -void recv_msg_userauth_success(); -void recv_msg_userauth_specific_60(); -void recv_msg_userauth_pk_ok(); -void recv_msg_userauth_info_request(); -void cli_get_user(); -void cli_auth_getmethods(); -int cli_auth_try(); -void recv_msg_userauth_banner(); -void cli_pubkeyfail(); -void cli_auth_password(); -int cli_auth_pubkey(); -void cli_auth_interactive(); +void recv_msg_userauth_failure(void); +void recv_msg_userauth_success(void); +void recv_msg_userauth_specific_60(void); +void recv_msg_userauth_pk_ok(void); +void recv_msg_userauth_info_request(void); +void cli_get_user(void); +void cli_auth_getmethods(void); +int cli_auth_try(void); +void recv_msg_userauth_banner(void); +void cli_pubkeyfail(void); +void cli_auth_password(void); +int cli_auth_pubkey(void); +void cli_auth_interactive(void); char* getpass_or_cancel(char* prompt); -void cli_auth_pubkey_cleanup(); +void cli_auth_pubkey_cleanup(void); #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */ |