comparison auth.h @ 1276:9169e4e7cbee

fix empty C prototypes
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 16:30:31 +0100
parents 9da3e7b4fe55
children 750ec4ec4cbe
comparison
equal deleted inserted replaced
1275:d49bda490798 1276:9169e4e7cbee
27 27
28 #include "includes.h" 28 #include "includes.h"
29 #include "signkey.h" 29 #include "signkey.h"
30 #include "chansession.h" 30 #include "chansession.h"
31 31
32 void svr_authinitialise(); 32 void svr_authinitialise(void);
33 void cli_authinitialise(); 33 void cli_authinitialise(void);
34 34
35 /* Server functions */ 35 /* Server functions */
36 void recv_msg_userauth_request(); 36 void recv_msg_userauth_request(void);
37 void send_msg_userauth_failure(int partial, int incrfail); 37 void send_msg_userauth_failure(int partial, int incrfail);
38 void send_msg_userauth_success(); 38 void send_msg_userauth_success(void);
39 void send_msg_userauth_banner(buffer *msg); 39 void send_msg_userauth_banner(buffer *msg);
40 void svr_auth_password(); 40 void svr_auth_password(void);
41 void svr_auth_pubkey(); 41 void svr_auth_pubkey(void);
42 void svr_auth_pam(); 42 void svr_auth_pam(void);
43 43
44 #ifdef ENABLE_SVR_PUBKEY_OPTIONS 44 #ifdef ENABLE_SVR_PUBKEY_OPTIONS
45 int svr_pubkey_allows_agentfwd(); 45 int svr_pubkey_allows_agentfwd(void);
46 int svr_pubkey_allows_tcpfwd(); 46 int svr_pubkey_allows_tcpfwd(void);
47 int svr_pubkey_allows_x11fwd(); 47 int svr_pubkey_allows_x11fwd(void);
48 int svr_pubkey_allows_pty(); 48 int svr_pubkey_allows_pty(void);
49 void svr_pubkey_set_forced_command(struct ChanSess *chansess); 49 void svr_pubkey_set_forced_command(struct ChanSess *chansess);
50 void svr_pubkey_options_cleanup(); 50 void svr_pubkey_options_cleanup(void);
51 int svr_add_pubkey_options(buffer *options_buf, int line_num, const char* filename); 51 int svr_add_pubkey_options(buffer *options_buf, int line_num, const char* filename);
52 #else 52 #else
53 /* no option : success */ 53 /* no option : success */
54 #define svr_pubkey_allows_agentfwd() 1 54 #define svr_pubkey_allows_agentfwd() 1
55 #define svr_pubkey_allows_tcpfwd() 1 55 #define svr_pubkey_allows_tcpfwd() 1
56 #define svr_pubkey_allows_x11fwd() 1 56 #define svr_pubkey_allows_x11fwd() 1
57 #define svr_pubkey_allows_pty() 1 57 #define svr_pubkey_allows_pty() 1
58 static inline void svr_pubkey_set_forced_command(struct ChanSess *chansess) { } 58 static inline void svr_pubkey_set_forced_command(struct ChanSess *chansess) { }
59 static inline void svr_pubkey_options_cleanup() { } 59 static inline void svr_pubkey_options_cleanup(void) { }
60 #define svr_add_pubkey_options(x,y,z) DROPBEAR_SUCCESS 60 #define svr_add_pubkey_options(x,y,z) DROPBEAR_SUCCESS
61 #endif 61 #endif
62 62
63 /* Client functions */ 63 /* Client functions */
64 void recv_msg_userauth_failure(); 64 void recv_msg_userauth_failure(void);
65 void recv_msg_userauth_success(); 65 void recv_msg_userauth_success(void);
66 void recv_msg_userauth_specific_60(); 66 void recv_msg_userauth_specific_60(void);
67 void recv_msg_userauth_pk_ok(); 67 void recv_msg_userauth_pk_ok(void);
68 void recv_msg_userauth_info_request(); 68 void recv_msg_userauth_info_request(void);
69 void cli_get_user(); 69 void cli_get_user(void);
70 void cli_auth_getmethods(); 70 void cli_auth_getmethods(void);
71 int cli_auth_try(); 71 int cli_auth_try(void);
72 void recv_msg_userauth_banner(); 72 void recv_msg_userauth_banner(void);
73 void cli_pubkeyfail(); 73 void cli_pubkeyfail(void);
74 void cli_auth_password(); 74 void cli_auth_password(void);
75 int cli_auth_pubkey(); 75 int cli_auth_pubkey(void);
76 void cli_auth_interactive(); 76 void cli_auth_interactive(void);
77 char* getpass_or_cancel(char* prompt); 77 char* getpass_or_cancel(char* prompt);
78 void cli_auth_pubkey_cleanup(); 78 void cli_auth_pubkey_cleanup(void);
79 79
80 80
81 #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */ 81 #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */
82 82
83 #define AUTH_TYPE_NONE 1 83 #define AUTH_TYPE_NONE 1